3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public function __construct($a) { } } function baz() { echo 'hi'; } new Foo(call_user_func('baz'));

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.0040.01118.56
8.3.50.0110.00618.09
8.3.40.0070.00718.62
8.3.30.0070.00718.70
8.3.20.0000.00821.73
8.3.10.0000.00721.89
8.3.00.0000.00919.56
8.2.180.0150.00618.48
8.2.170.0120.00322.96
8.2.160.0150.00020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.07
8.2.120.0060.00326.35
8.2.110.0030.00620.38
8.2.100.0120.00317.41
8.2.90.0050.00317.72
8.2.80.0050.00319.14
8.2.70.0030.00517.80
8.2.60.0080.00017.89
8.2.50.0040.00418.10
8.2.40.0050.00320.60
8.2.30.0070.00019.00
8.2.20.0040.00417.91
8.2.10.0000.00717.96
8.2.00.0000.00717.81
8.1.280.0070.00725.92
8.1.270.0110.00722.09
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.69
8.1.230.0070.00422.57
8.1.220.0040.00417.74
8.1.210.0050.00320.23
8.1.200.0030.00517.10
8.1.190.0070.00317.11
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.71
8.1.150.0070.00020.17
8.1.140.0030.00617.50
8.1.130.0000.00718.86
8.1.120.0040.00417.30
8.1.110.0000.00717.35
8.1.100.0030.00517.32
8.1.90.0050.00517.23
8.1.80.0030.00517.23
8.1.70.0030.00317.28
8.1.60.0040.00417.45
8.1.50.0050.00317.35
8.1.40.0040.00717.40
8.1.30.0020.00517.55
8.1.20.0000.00817.47
8.1.10.0050.00217.41
8.1.00.0050.00217.32
8.0.300.0040.00421.72
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0070.00017.16
8.0.260.0030.00316.76
8.0.250.0070.00016.90
8.0.240.0070.00016.84
8.0.230.0030.00316.73
8.0.220.0040.00416.67
8.0.210.0030.00316.83
8.0.200.0060.00016.84
8.0.190.0000.00716.75
8.0.180.0060.00316.83
8.0.170.0000.00816.77
8.0.160.0030.00316.80
8.0.150.0040.00416.59
8.0.140.0000.00716.77
8.0.130.0070.00013.18
8.0.120.0040.00416.61
8.0.110.0000.00816.76
8.0.100.0050.00216.77
8.0.90.0040.00416.65
8.0.80.0140.00716.71
8.0.70.0030.00616.70
8.0.60.0080.00016.58
8.0.50.0050.00216.64
8.0.30.0070.01317.09
8.0.20.0130.00517.40
8.0.10.0050.00316.88
8.0.00.0110.00816.66
7.4.330.0030.00315.55
7.4.320.0040.00416.46
7.4.300.0000.00716.45
7.4.290.0040.00416.42
7.4.280.0040.00416.42
7.4.270.0030.00616.44
7.4.260.0040.00316.31
7.4.250.0070.00016.42
7.4.240.0000.00716.60
7.4.230.0000.00716.61
7.4.220.0030.00516.39
7.4.210.0000.01716.56
7.4.200.0040.00416.48
7.4.160.0060.01016.48
7.4.150.0040.01317.40
7.4.140.0080.00917.86
7.4.130.0090.00916.63
7.4.120.0120.00816.43
7.4.110.0180.00016.46
7.4.100.0070.01016.52
7.4.90.0150.00416.48
7.4.80.0130.01019.39
7.4.70.0030.01616.54
7.4.60.0110.00516.40
7.4.50.0110.00416.41
7.4.40.0100.00616.36
7.4.00.0060.00615.05
7.3.330.0050.00013.31
7.3.320.0060.00013.31
7.3.310.0080.00016.34
7.3.300.0030.00316.27
7.3.290.0060.01116.30
7.3.280.0050.01316.31
7.3.270.0060.01217.40
7.3.260.0080.01116.43
7.3.240.0050.01216.54
7.3.230.0110.00616.39
7.3.210.0060.01016.50
7.3.200.0110.00616.44
7.3.190.0040.01216.40
7.3.180.0170.00316.52
7.3.170.0060.01016.40
7.3.160.0060.01116.40
7.2.330.0030.01416.72
7.2.320.0100.00716.62
7.2.310.0060.01216.55
7.2.300.0090.00916.60
7.2.290.0000.01616.55
7.2.60.0000.00816.69
7.2.20.0140.01317.96
7.2.10.0140.01217.71
7.2.00.0150.01417.60
7.1.200.0040.00715.78
7.1.140.1070.01816.54
7.1.130.0090.01716.73
7.1.120.0150.01216.74
7.1.110.0150.01115.93
7.1.100.0140.01416.12
7.1.90.0120.01315.66
7.1.80.0130.01216.16
7.1.70.0220.01315.24
7.1.60.0290.01532.91
7.1.50.0300.02132.88
7.1.40.0280.01832.51
7.1.30.0330.01232.41
7.1.20.0390.01932.69
7.1.10.0140.01214.72
7.1.00.0120.01314.88

preferences:
54.65 ms | 400 KiB | 5 Q