3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = pack('c*', -22); $testU = pack('C*', 234); $testC = chr(-22); $testCU = chr(234); echo $test; echo $testU; echo $testC; echo $testCU; echo $test == $testU; echo $testC == $test; echo $testCU == $test; $uTest = unpack('c*', 'ê'); $iTest = (int) 'ê'; var_dump($uTest); echo $iTest;

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.0120.00418.51
8.3.50.0090.00618.03
8.3.40.0160.00318.76
8.3.30.0070.00718.84
8.3.20.0040.00419.18
8.3.10.0080.00019.35
8.3.00.0040.00423.46
8.2.180.0140.00718.29
8.2.170.0070.00722.96
8.2.160.0000.01422.09
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.64
8.2.120.0040.00426.35
8.2.110.0100.00719.36
8.2.100.0060.00617.84
8.2.90.0080.00017.75
8.2.80.0040.00418.96
8.2.70.0050.00317.80
8.2.60.0050.00217.93
8.2.50.0030.00618.10
8.2.40.0050.00219.20
8.2.30.0040.00419.45
8.2.20.0080.00018.05
8.2.10.0000.00718.16
8.2.00.0040.00419.38
8.1.280.0060.00925.92
8.1.270.0070.00022.14
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0000.00924.02
8.1.230.0090.00320.90
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.21
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0050.00318.62
8.1.160.0000.00718.81
8.1.150.0050.00218.83
8.1.140.0040.00417.63
8.1.130.0030.00319.07
8.1.120.0000.00717.48
8.1.110.0030.00617.46
8.1.100.0040.00417.38
8.1.90.0000.00717.48
8.1.80.0040.00417.45
8.1.70.0000.00817.36
8.1.60.0060.00317.64
8.1.50.0020.00517.52
8.1.40.0040.00417.43
8.1.30.0050.00217.51
8.1.20.0030.00517.67
8.1.10.0040.00417.47
8.1.00.0000.00917.45
8.0.300.0050.00218.77
8.0.290.0000.00716.75
8.0.280.0030.00318.32
8.0.270.0070.00017.28
8.0.260.0070.00019.09
8.0.250.0030.00317.02
8.0.240.0000.01016.92
8.0.230.0040.00416.89
8.0.220.0040.00416.91
8.0.210.0030.00516.85
8.0.200.0030.00316.82
8.0.190.0000.00816.83
8.0.180.0000.00716.93
8.0.170.0080.00016.80
8.0.160.0040.00416.90
8.0.150.0080.00016.89
8.0.140.0000.00716.78
8.0.130.0050.00013.33
8.0.120.0030.00516.81
8.0.110.0070.00016.89
8.0.100.0040.00416.95
8.0.90.0070.00016.80
8.0.80.0140.00516.92
8.0.70.0040.00416.77
8.0.60.0050.00216.79
8.0.50.0040.00416.88
8.0.30.0140.00616.99
8.0.20.0120.01317.40
8.0.10.0000.00717.20
8.0.00.0110.01016.81
7.4.330.0000.00415.55
7.4.320.0030.00316.59
7.4.300.0000.00716.49
7.4.290.0070.00016.36
7.4.280.0000.00716.61
7.4.270.0030.00316.60
7.4.260.0000.00716.42
7.4.250.0000.00716.49
7.4.240.0000.00716.59
7.4.230.0000.00716.66
7.4.220.0070.00016.41
7.4.210.0100.00616.47
7.4.200.0030.00516.41
7.4.160.0050.01016.53
7.4.140.0100.00917.86
7.4.130.0050.01316.39
7.4.120.0100.01116.57
7.4.110.0130.00316.60
7.4.100.0110.00616.47
7.4.90.0120.01116.33
7.4.80.0090.00919.39
7.4.70.0170.00316.50
7.4.60.0100.01116.37
7.4.50.0040.00716.39
7.4.40.0140.01016.77
7.4.00.0040.01114.84
7.3.330.0020.00213.11
7.3.320.0000.00613.02
7.3.310.0050.00316.33
7.3.300.0000.00716.36
7.3.290.0000.00716.17
7.3.280.0040.00616.22
7.3.260.0100.00916.47
7.3.240.0090.01016.42
7.3.230.0030.01316.31
7.3.210.0100.00716.19
7.3.200.0090.01016.29
7.3.190.0150.00516.39
7.3.180.0060.01516.21
7.3.170.0060.01516.30
7.3.160.0120.00416.38
7.2.330.0030.01716.39
7.2.320.0150.00316.30
7.2.310.0080.01516.64
7.2.300.0060.01216.42
7.2.290.0090.00916.62
7.2.60.0170.00914.61
7.2.50.0100.00814.55
7.2.40.0100.00715.23
7.2.30.0190.00815.34
7.2.20.0210.00615.30
7.2.10.0120.00715.22
7.2.00.0080.00915.41
7.1.200.0030.01215.55
7.1.170.0170.00913.75
7.1.160.1670.00716.91
7.1.150.0420.01016.92
7.1.140.0130.00716.87
7.1.130.0190.00816.80
7.1.120.0100.01016.59
7.1.110.1060.00916.11
7.1.100.0140.00716.40
7.1.90.0300.01315.93
7.1.80.0140.00916.55
7.1.70.0180.01215.51
7.1.60.3360.02133.18
7.1.50.2400.01333.04
7.1.40.2780.01432.61
7.1.30.2710.02032.57
7.1.20.0720.01632.75
7.1.10.2600.01114.94
7.1.00.0110.01114.73

preferences:
53.65 ms | 401 KiB | 5 Q