3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "<?"; $tokensOldContentLength = 0; $possibleOpenContent = substr($content, -1, 5); var_dump($possibleOpenContent); var_dump(substr('a', 0, 2));

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.0100.00618.18
8.3.50.0120.00320.20
8.3.40.0110.00418.57
8.3.30.0080.00818.92
8.3.20.0040.00424.18
8.3.10.0090.00024.66
8.3.00.0000.00726.16
8.2.180.0000.01525.92
8.2.170.0160.00618.93
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00526.16
8.2.110.0000.00922.29
8.2.100.0040.00717.71
8.2.90.0000.00920.59
8.2.80.0080.00018.65
8.2.70.0030.00617.25
8.2.60.0000.00817.68
8.2.50.0060.00318.07
8.2.40.0040.00419.59
8.2.30.0030.00618.11
8.2.20.0040.00420.42
8.2.10.0000.00718.12
8.2.00.0040.00419.16
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00420.20
8.1.230.0080.00317.76
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00418.71
8.1.150.0000.00918.48
8.1.140.0030.00517.38
8.1.130.0040.00418.84
8.1.120.0030.00317.41
8.1.110.0000.00817.30
8.1.100.0040.00417.32
8.1.90.0040.00417.40
8.1.80.0040.00417.29
8.1.70.0000.00717.32
8.1.60.0110.00317.51
8.1.50.0130.01117.32
8.1.40.0180.00517.34
8.1.30.0200.00417.39
8.1.20.0170.00317.60
8.1.10.0200.00317.47
8.1.00.0170.00817.31
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0080.00018.35
8.0.270.0000.00716.79
8.0.260.0030.00318.29
8.0.250.0030.00616.87
8.0.240.0030.00316.88
8.0.230.0000.00816.79
8.0.220.0000.00816.71
8.0.210.0000.00816.71
8.0.200.0030.00316.88
8.0.190.0190.00016.85
8.0.180.0200.00016.82
8.0.170.0060.01216.86
8.0.160.0110.00816.70
8.0.150.0140.00616.60
8.0.140.0130.00616.74
8.0.130.0180.00016.76
8.0.120.0120.00616.71
8.0.110.0200.00016.86
8.0.100.0180.00316.63
8.0.90.0120.00616.66
8.0.80.0060.01316.81
8.0.70.0190.00016.66
8.0.60.0160.00316.67
8.0.50.0120.00616.82
8.0.30.0150.00416.63
8.0.20.0160.00216.76
8.0.10.0110.00916.88
7.4.330.0020.00215.55
7.4.320.0000.00716.36
7.4.300.0000.00716.53
7.4.290.0160.00016.43
7.4.280.0170.00616.39
7.4.270.0110.00816.32
7.4.260.0190.00416.32
7.4.250.0190.00416.31
7.4.240.0100.01016.50
7.4.230.0070.00716.39
7.4.220.0140.00516.48
7.4.210.0130.00416.48
7.4.200.0110.00316.50
7.4.190.0030.00816.56
7.4.180.0040.00416.55
7.4.160.0170.00016.51
7.4.150.0170.00016.42
7.4.140.0060.01216.22
7.4.130.0130.00316.22
7.4.120.0150.00316.32
7.4.110.0150.00016.18
7.4.100.0100.00716.37
7.4.90.0160.00316.23
7.4.80.0180.00016.35
7.4.70.0140.00416.30
7.4.60.0120.00616.24
7.4.50.0120.00416.25
7.4.40.0150.00316.34
7.4.30.0160.00216.32
7.4.20.0130.00616.36
7.4.10.0150.00416.14
7.4.00.0140.00316.31

preferences:
34.93 ms | 401 KiB | 5 Q