3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(ticks=1); function t_handler() { echo "Example function\n"; } register_tick_function('t_handler'); $x = 1; if ($x > 0) { $x += 2; print($x); } ?>

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.0170.00016.50
8.3.50.0140.00418.07
8.3.40.0110.00418.69
8.3.30.0090.00618.54
8.3.20.0000.00718.93
8.3.10.0050.00323.66
8.3.00.0040.00420.58
8.2.180.0110.00418.41
8.2.170.0070.00722.96
8.2.160.0100.00322.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.83
8.2.110.0090.00019.27
8.2.100.0070.00318.22
8.2.90.0000.00817.75
8.2.80.0030.00917.97
8.2.70.0030.00617.93
8.2.60.0040.00418.09
8.2.50.0000.00818.10
8.2.40.0030.00619.29
8.2.30.0000.00819.36
8.2.20.0030.00618.15
8.2.10.0070.00018.16
8.2.00.0050.00317.70
8.1.280.0080.00625.92
8.1.270.0040.00420.77
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0030.00622.05
8.1.230.0070.00418.95
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0050.00318.80
8.1.150.0000.00718.86
8.1.140.0050.00222.16
8.1.130.0030.00320.16
8.1.120.0040.00417.43
8.1.110.0000.00817.24
8.1.100.0000.00717.39
8.1.90.0040.00417.35
8.1.80.0030.00617.39
8.1.70.0000.00817.35
8.1.60.0030.00717.57
8.1.50.0000.00717.50
8.1.40.0000.00717.54
8.1.30.0000.00717.70
8.1.20.0000.00817.61
8.1.10.0020.00517.51
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00718.48
8.0.270.0070.00017.16
8.0.260.0000.00718.48
8.0.250.0000.00716.96
8.0.240.0030.00317.00
8.0.230.0070.00016.79
8.0.220.0030.00316.80
8.0.210.0070.00016.70
8.0.200.0030.00516.74
8.0.190.0040.00416.88
8.0.180.0000.00816.84
8.0.170.0040.00416.76
8.0.160.0030.00516.68
8.0.150.0030.00516.80
8.0.140.0050.00316.77
8.0.130.0000.00613.18
8.0.120.0040.00416.79
8.0.110.0070.00016.77
8.0.100.0000.00716.88
8.0.90.0040.00416.69
8.0.80.0090.01016.82
8.0.70.0000.00716.72
8.0.60.0080.00016.61
8.0.50.0000.00716.70
8.0.30.0040.01116.99
8.0.20.0060.01217.40
8.0.10.0000.00716.84
8.0.00.0130.00816.73
7.4.330.0060.00015.55
7.4.320.0030.00416.45
7.4.300.0000.00616.52
7.4.290.0000.00616.46
7.4.280.0000.00916.51
7.4.270.0030.00316.41
7.4.260.0000.00716.52
7.4.250.0000.00716.48
7.4.240.0000.00716.48
7.4.230.0070.00016.62
7.4.220.0000.00716.42
7.4.210.0040.01016.51
7.4.200.0030.00316.24
7.4.160.0080.00816.37
7.4.140.0120.00817.86
7.4.130.0060.01616.43
7.4.120.0140.00416.41
7.4.110.0140.00316.39
7.4.100.0140.00416.14
7.4.90.0110.01116.54
7.4.80.0170.00319.39
7.4.70.0130.00616.45
7.4.60.0100.00716.32
7.4.50.0000.01916.47
7.4.40.0070.01016.23
7.4.00.0040.00714.93
7.3.330.0050.00013.08
7.3.320.0050.00013.09
7.3.310.0000.00816.08
7.3.300.0000.00716.18
7.3.290.0030.00316.23
7.3.280.0030.01416.24
7.3.260.0130.00516.46
7.3.240.0080.01016.30
7.3.230.0160.00016.34
7.3.210.0070.01016.46
7.3.200.0070.01016.47
7.3.190.0090.00716.22
7.3.180.0130.00316.32
7.3.170.0090.01316.21
7.3.160.0090.00616.32
7.2.330.0100.00716.57
7.2.320.0120.00616.59
7.2.310.0070.01016.55
7.2.300.0060.01216.31
7.2.290.0090.00916.69
7.2.110.0510.01014.89
7.2.100.0570.01014.76
7.2.90.0710.01014.88
7.2.80.0580.00314.41
7.2.70.0810.01015.09
7.2.60.0520.01014.49
7.2.50.0580.01114.69
7.2.40.0850.01314.57
7.2.30.0620.00614.89
7.2.20.0580.01414.81
7.2.10.0650.01014.66
7.2.00.0580.01314.86
7.1.230.0460.01013.75
7.1.220.0570.00813.83
7.1.210.1160.00913.89
7.1.200.0530.00613.88
7.1.190.1120.00613.82
7.1.180.0640.00413.89
7.1.170.1000.01313.43
7.1.160.0540.01013.80
7.1.150.0740.00713.84
7.1.140.0570.00613.86
7.1.130.0840.01313.71
7.1.120.1030.00013.94
7.1.110.0590.00714.11
7.1.100.0680.00313.45
7.1.90.0490.01513.92
7.1.80.0580.00013.75
7.1.70.0640.00314.00
7.1.60.1420.01031.61
7.1.50.0920.01031.81
7.1.40.0880.01331.96
7.1.30.1210.01031.50
7.1.20.0990.00331.67
7.1.10.0730.00613.66
7.1.00.0620.00613.66
5.6.380.0190.00914.34

preferences:
34.29 ms | 400 KiB | 5 Q