3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'c_encrypted' => [ 'c_customer' => [ 'customer/company ID' ], 'c_brand' => [ 'brandname' ], 'c_productname' => [ 'product displayname' ], 'c_eventtype' => [ 'click / premium click' ] ] ]; $output = json_encode($arr, JSON_UNESCAPED_SLASHES); $output = str_replace('[', '{', $output); $output = str_replace(']', '}', $output); $output = str_replace(':', '=', $output); $output = str_replace(',', ';', $output); // $output = str_replace('[', '{', $output); var_dump($output); var_dump(' c_encrypted ={ c_customer ={ customer/company ID }; c_brand ={ brandname }; c_productname ={ product displayname }; c_eventtype ={ click / premium click };}');

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00718.43
8.3.50.0060.00816.36
8.3.40.0110.00418.62
8.3.30.0070.00718.54
8.3.20.0040.00418.97
8.3.10.0040.00421.77
8.3.00.0030.00618.03
8.2.180.0210.00018.17
8.2.170.0070.00722.96
8.2.160.0130.00320.44
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0070.00020.56
8.2.120.0040.00426.35
8.2.110.0100.00021.07
8.2.100.0040.00820.48
8.2.90.0030.00719.31
8.2.80.0000.00718.22
8.2.70.0060.00317.93
8.2.60.0060.00318.21
8.2.50.0050.00318.10
8.2.40.0030.00522.32
8.2.30.0040.00420.85
8.2.20.0000.00717.86
8.2.10.0070.00018.05
8.2.00.0040.00417.96
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00722.06
8.1.230.0040.00720.93
8.1.220.0030.00617.76
8.1.210.0000.00818.77
8.1.200.0090.00317.23
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0000.00818.53
8.1.160.0000.00718.93
8.1.150.0040.00418.88
8.1.140.0000.01019.57
8.1.130.0070.00018.75
8.1.120.0030.00517.41
8.1.110.0000.00817.44
8.1.100.0070.00017.36
8.1.90.0020.00517.37
8.1.80.0000.00717.36
8.1.70.0040.00417.42
8.1.60.0000.00817.54
8.1.50.0070.00017.45
8.1.40.0040.00417.47
8.1.30.0000.00717.64
8.1.20.0030.00517.51
8.1.10.0020.00517.45
8.1.00.0040.00417.39
8.0.300.0000.00719.57
8.0.290.0080.00016.63
8.0.280.0050.00218.33
8.0.270.0030.00317.19
8.0.260.0030.00316.81
8.0.250.0060.00016.88
8.0.240.0030.00316.91
8.0.230.0030.00316.94
8.0.220.0000.00716.82
8.0.210.0000.00716.86
8.0.200.0000.00616.92
8.0.190.0000.00816.93
8.0.180.0000.00716.92
8.0.170.0000.00716.74
8.0.160.0000.00716.96
8.0.150.0050.00216.75
8.0.140.0000.00816.80
8.0.130.0030.00313.24
8.0.120.0000.00716.75
8.0.110.0040.00416.71
8.0.100.0000.00716.94
8.0.90.0030.00316.71
8.0.80.0110.01116.86
8.0.70.0040.00416.70
8.0.60.0040.00416.66
8.0.50.0050.00216.89
8.0.30.0080.00816.87
8.0.20.0130.01017.40
8.0.10.0040.00416.84
8.0.00.0070.01016.62
7.4.330.0050.00015.55
7.4.320.0060.00016.31
7.4.300.0060.00016.52
7.4.290.0070.00016.34
7.4.280.0040.00416.43
7.4.270.0070.00016.55
7.4.260.0000.00613.21
7.4.250.0050.00216.43
7.4.240.0030.00316.47
7.4.230.0030.00316.45
7.4.220.0160.00716.50
7.4.210.0100.00716.62
7.4.200.0070.00016.38
7.4.160.0090.00616.42
7.4.150.0140.00317.40
7.4.140.0100.01217.86
7.4.130.0110.00716.69
7.4.120.0120.00616.47
7.4.110.0060.01316.45
7.4.100.0140.00416.43
7.4.90.0060.01316.39
7.4.80.0060.01219.39
7.4.70.0080.00816.44
7.4.60.0090.00916.39
7.4.50.0090.00616.30
7.4.40.0100.00516.48
7.4.30.0100.00716.45
7.4.00.0090.00714.70
7.3.330.0040.00412.88
7.3.320.0050.00013.08
7.3.310.0030.00316.23
7.3.300.0000.00716.05
7.3.290.0080.00716.15
7.3.280.0090.00816.12
7.3.270.0060.01117.40
7.3.260.0140.00316.13
7.3.250.0090.01016.19
7.3.240.0120.00516.39
7.3.230.0090.01116.27
7.3.210.0060.00916.14
7.3.200.0110.00716.09
7.3.190.0070.01016.17
7.3.180.0090.00816.14
7.3.170.0080.00816.33
7.3.160.0060.00916.34
7.3.120.0030.01714.33
7.3.110.0090.00914.45
7.3.100.0090.00314.51
7.3.90.0160.00314.49
7.3.80.0110.00415.04
7.3.70.0030.01414.41
7.3.60.0060.00814.59
7.3.50.0060.01014.74
7.3.40.0030.01314.65
7.3.30.0080.00814.61
7.3.20.0070.00716.52
7.3.10.0030.01016.46
7.3.00.0000.01516.53
7.2.330.0070.01716.38
7.2.320.0070.01016.21
7.2.310.0100.00616.22
7.2.300.0070.01016.61
7.2.290.0080.00816.52
7.2.250.0100.00915.04
7.2.240.0100.01014.82
7.2.230.0080.00815.11
7.2.220.0040.01115.04
7.2.210.0030.00714.55
7.2.200.0060.01014.84
7.2.190.0060.00914.84
7.2.180.0040.01114.59
7.2.170.0120.00314.92
7.2.60.0110.00316.55
7.2.00.0060.00619.25
7.1.330.0080.00815.85
7.1.320.0040.00815.65
7.1.310.0110.00715.91
7.1.300.0030.01015.48
7.1.290.0060.01015.38
7.1.280.0070.00315.72
7.1.270.0030.01015.53
7.1.260.0100.00315.93
7.1.200.0090.00315.61
7.1.100.0040.00418.11
7.1.70.0060.00316.89
7.1.60.1300.01733.24
7.1.50.0300.00732.66
7.1.40.1630.00732.45
7.1.30.2200.02332.62
7.1.20.1300.01032.54
7.1.10.0570.01714.65
7.1.00.1000.01315.00
7.0.200.0070.01314.88
7.0.190.1230.02014.55
7.0.180.1100.00714.51
7.0.170.1200.01314.46
7.0.160.0100.01314.20
7.0.150.0200.00014.25
7.0.140.1030.01714.58
7.0.130.1030.01014.59
7.0.120.1000.01714.48
7.0.110.0030.01314.41
7.0.100.1130.01314.34
7.0.90.1030.01314.36
7.0.80.1100.02014.39
7.0.70.1030.01714.27
7.0.60.0900.01014.23
7.0.50.0830.01314.51
7.0.40.0730.01714.52
7.0.30.0970.01014.65
7.0.20.0900.01314.67
7.0.10.0730.02014.43
7.0.00.1630.01014.30

preferences:
85.49 ms | 400 KiB | 5 Q