3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This should print '3' $text = '3 '; echo $text[0] . "\n"; // This should print '3' too $text = '33'; echo $text[0] . "\n"; // This should be '4' echo $text[0] + 1 . "\n"; // What about this ? $text = '9'; echo $text[0] + 1 . "\n";

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.0070.01518.31
8.3.50.0100.00316.33
8.3.40.0090.00918.87
8.3.30.0090.00618.79
8.3.20.0040.00418.96
8.3.10.0040.00423.78
8.3.00.0070.00021.76
8.2.180.0070.01316.50
8.2.170.0140.00022.96
8.2.160.0070.00719.20
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00221.99
8.2.120.0080.00026.35
8.2.110.0090.00322.20
8.2.100.0090.00317.97
8.2.90.0030.00617.91
8.2.80.0030.00718.03
8.2.70.0060.00318.04
8.2.60.0070.00018.09
8.2.50.0050.00318.10
8.2.40.0030.00619.54
8.2.30.0040.00419.25
8.2.20.0030.00518.11
8.2.10.0070.00018.29
8.2.00.0000.00817.59
8.1.280.0110.00425.92
8.1.270.0040.00820.17
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00023.94
8.1.230.0000.01120.88
8.1.220.0050.00317.74
8.1.210.0000.00818.90
8.1.200.0060.00317.22
8.1.190.0080.00017.00
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0050.00318.93
8.1.150.0030.00618.95
8.1.140.0000.00720.23
8.1.130.0000.00720.15
8.1.120.0050.00217.47
8.1.110.0040.00417.36
8.1.100.0030.00517.36
8.1.90.0020.00517.47
8.1.80.0090.00017.51
8.1.70.0000.00717.43
8.1.60.0090.00017.50
8.1.50.0080.00017.55
8.1.40.0040.00417.50
8.1.30.0030.00517.57
8.1.20.0030.00517.64
8.1.10.0040.00417.46
8.1.00.0050.00217.57
8.0.300.0040.00419.78
8.0.290.0060.00316.72
8.0.280.0030.00318.38
8.0.270.0000.00817.26
8.0.260.0060.00020.24
8.0.250.0070.00016.93
8.0.240.0060.00317.01
8.0.230.0000.00716.90
8.0.220.0000.00917.00
8.0.210.0040.00416.89
8.0.200.0040.00417.00
8.0.190.0040.00416.97
8.0.180.0040.00417.00
8.0.170.0060.00616.93
8.0.160.0070.00016.99
8.0.150.0030.00516.84
8.0.140.0080.00016.80
8.0.130.0000.00513.39
8.0.120.0050.00216.80
8.0.110.0080.00017.01
8.0.100.0030.00316.90
8.0.90.0000.00816.82
8.0.80.0070.00917.00
8.0.70.0000.00716.88
8.0.60.0000.00716.95
8.0.50.0050.00316.87
8.0.30.0130.00617.16
8.0.20.0080.01317.40
8.0.10.0070.00016.96
8.0.00.0110.00616.87
7.4.330.0040.00015.55
7.4.320.0060.00016.54
7.4.300.0000.00616.48
7.4.290.0040.00416.43
7.4.280.0040.00416.55
7.4.270.0030.00616.51
7.4.260.0000.00716.53
7.4.250.0030.00316.39
7.4.240.0000.00716.56
7.4.230.0030.00316.33
7.4.220.0040.00416.32
7.4.210.0110.00516.42
7.4.200.0000.00716.57
7.4.160.0090.00816.47
7.4.140.0060.01217.86
7.4.130.0150.00916.57
7.4.120.0110.00816.42
7.4.110.0150.00716.47
7.4.100.0040.01216.39
7.4.90.0130.00416.42
7.4.80.0120.00819.39
7.4.70.0060.01016.20
7.4.60.0090.00916.57
7.4.50.0070.00716.43
7.4.40.0180.00016.47
7.4.00.0100.00714.61
7.3.330.0030.00313.11
7.3.320.0060.00013.01
7.3.310.0000.00816.13
7.3.300.0030.00316.21
7.3.290.0030.00316.20
7.3.280.0100.00916.20
7.3.260.0070.01216.43
7.3.240.0100.00816.32
7.3.230.0130.00716.54
7.3.210.0060.01116.51
7.3.200.0080.00816.38
7.3.190.0110.01116.40
7.3.180.0100.01016.18
7.3.170.0030.01316.29
7.3.160.0120.00616.49
7.2.330.0060.01616.28
7.2.320.0160.00616.69
7.2.310.0100.00716.45
7.2.300.0090.01216.53
7.2.290.0120.00416.89
7.2.110.7310.01014.54
7.2.100.5540.00314.71
7.2.90.4640.01014.78
7.2.80.4140.01014.71
7.2.70.2420.01014.70
7.2.60.3530.00714.63
7.2.50.3700.00314.85
7.2.40.2710.01015.36
7.2.30.2740.00315.05
7.2.20.2820.01015.10
7.2.10.2770.01015.03
7.2.00.2350.01314.85
7.1.230.5000.00714.12
7.1.220.4420.00713.61
7.1.210.4600.01013.68
7.1.200.4410.00713.82
7.1.190.3990.01314.00
7.1.180.3560.00313.44
7.1.170.2990.00713.85
7.1.160.3490.02013.54
7.1.150.3040.00713.66
7.1.140.2820.01013.80
7.1.130.2390.01013.82
7.1.120.2340.00713.46
7.1.110.2320.00313.74
7.1.100.2490.01313.62
7.1.90.2800.00713.70
7.1.80.3240.00714.00
7.1.70.2480.01013.95
7.1.60.3080.00332.06
7.1.50.2750.00331.72
7.1.40.2840.01031.29
7.1.30.2800.00331.77
7.1.20.2570.01331.94
7.1.10.2820.01013.70
7.1.00.2330.00313.58
5.6.380.0170.00414.46

preferences:
68.56 ms | 401 KiB | 5 Q