3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Hello '.(new class('world') { public function __construct($hello) { $this->hello = $hello; } })->hello; $test = new class extends \Exception {}; var_dump($test);

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.01018.43
8.3.50.0260.01121.99
8.3.40.0060.00918.98
8.3.30.0090.00618.87
8.3.20.0040.00420.20
8.3.10.0080.00023.61
8.3.00.0050.00319.85
8.2.180.0060.00916.88
8.2.170.0070.00722.96
8.2.160.0130.00720.18
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0060.00319.45
8.2.120.0040.00426.35
8.2.110.0060.00320.98
8.2.100.0080.00418.03
8.2.90.0080.00017.84
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0070.00320.61
8.2.30.0000.00720.59
8.2.20.0000.00717.68
8.2.10.0030.00517.99
8.2.00.0000.00917.94
8.1.280.0120.00325.92
8.1.270.0030.00520.25
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0040.00422.54
8.1.230.0120.00020.72
8.1.220.0080.00017.79
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00420.70
8.1.150.0070.00018.82
8.1.140.0040.00419.45
8.1.130.0030.00517.61
8.1.120.0000.00717.46
8.1.110.0070.00017.35
8.1.100.0030.00617.45
8.1.90.0000.00817.52
8.1.80.0000.00817.38
8.1.70.0020.00517.28
8.1.60.0060.00317.61
8.1.50.0030.00617.41
8.1.40.0050.00317.37
8.1.30.0000.00817.65
8.1.20.0030.00517.50
8.1.10.0060.00317.46
8.1.00.0000.00817.48
8.0.300.0030.00620.01
8.0.290.0000.00816.63
8.0.280.0000.00818.44
8.0.270.0040.00417.24
8.0.260.0030.00317.30
8.0.250.0030.00316.92
8.0.240.0030.00316.93
8.0.230.0030.00316.84
8.0.220.0040.00416.91
8.0.210.0030.00316.79
8.0.200.0100.00016.81
8.0.190.0040.00416.97
8.0.180.0040.00416.89
8.0.170.0000.00916.79
8.0.160.0000.00716.93
8.0.150.0050.00316.78
8.0.140.0040.00416.81
8.0.130.0050.00013.28
8.0.120.0060.00316.82
8.0.110.0050.00316.90
8.0.100.0040.00416.76
8.0.90.0090.00016.90
8.0.80.0100.01316.88
8.0.70.0040.00416.92
8.0.60.0000.00716.91
8.0.50.0040.00416.85
8.0.30.0130.00717.12
8.0.20.0080.01217.40
8.0.10.0040.00417.06
8.0.00.0090.00716.77
7.4.330.0030.00216.82
7.4.320.0070.00016.40
7.4.300.0030.00316.63
7.4.290.0050.00316.50
7.4.280.0050.00516.54
7.4.270.0030.00316.59
7.4.260.0000.00716.49
7.4.250.0000.00816.41
7.4.240.0040.00416.57
7.4.230.0070.00016.58
7.4.220.0070.01016.53
7.4.210.0080.00816.61
7.4.200.0070.00016.40
7.4.160.0030.01216.57
7.4.150.0140.00317.40
7.4.140.0100.01117.86
7.4.130.0130.00416.39
7.4.120.0060.01116.60
7.4.110.0110.00616.41
7.4.100.0070.01116.51
7.4.90.0170.00016.52
7.4.80.0070.01819.39
7.4.70.0090.00616.56
7.4.60.0140.00316.59
7.4.50.0060.00616.50
7.4.40.0080.00916.52
7.4.30.0100.00616.64
7.4.00.0050.01215.06
7.3.330.0000.00713.22
7.3.320.0030.00313.13
7.3.310.0080.00016.27
7.3.300.0030.00316.34
7.3.290.0000.00816.26
7.3.280.0090.00716.33
7.3.270.0070.01117.40
7.3.260.0180.00516.34
7.3.250.0130.00816.33
7.3.240.0050.01416.33
7.3.230.0060.01216.40
7.3.210.0140.00316.48
7.3.200.0100.01016.21
7.3.190.0070.01016.25
7.3.180.0100.00616.10
7.3.170.0040.01516.45
7.3.160.0090.01516.54
7.3.120.0110.00714.44
7.3.110.0060.01014.83
7.3.100.0060.00614.99
7.3.90.0060.01214.70
7.3.80.0070.00714.73
7.3.70.0070.00714.48
7.3.60.0050.00514.82
7.3.50.0030.01314.52
7.3.40.0040.01214.47
7.3.30.0070.00714.66
7.3.20.0030.00916.64
7.3.10.0060.00516.58
7.3.00.0100.00516.54
7.2.330.0080.00816.64
7.2.320.0150.00916.77
7.2.310.0080.01616.59
7.2.300.0140.00416.63
7.2.290.0100.00716.53
7.2.250.0000.01615.05
7.2.240.0120.00915.07
7.2.230.0030.01315.11
7.2.220.0070.00414.78
7.2.210.0060.00915.29
7.2.200.0030.01415.21
7.2.190.0060.00914.96
7.2.180.0030.01615.21
7.2.170.0040.00815.09
7.2.130.0090.00616.56
7.2.120.0030.01016.66
7.2.110.0070.00716.76
7.2.100.0070.00317.13
7.2.90.0130.00317.02
7.2.80.0130.00317.08
7.2.70.0000.01017.02
7.2.60.0050.01216.77
7.2.50.0040.01117.00
7.2.40.0070.00317.10
7.2.30.0040.01116.92
7.2.20.0070.01016.71
7.2.10.0060.00316.54
7.2.00.0050.00918.20
7.1.330.0030.01215.86
7.1.320.0000.00815.51
7.1.310.0040.00715.49
7.1.300.0030.00915.75
7.1.290.0100.00715.79
7.1.280.0090.00315.63
7.1.270.0110.00415.76
7.1.260.0030.00616.02
7.1.250.0050.00515.80
7.1.200.0060.00615.76
7.1.100.0040.00718.35
7.1.70.0030.01016.87
7.1.60.0070.01319.44
7.1.50.0070.01317.04
7.1.00.0000.08022.45
7.0.200.0000.00816.88
7.0.60.0170.07719.92
7.0.50.0070.07317.83
7.0.40.0030.04320.27
7.0.30.0230.05320.24
7.0.20.0330.08020.09
7.0.10.0030.04320.12
7.0.00.0030.09720.10
5.6.280.0000.04020.92
5.6.210.0030.07720.70
5.6.200.0030.04318.19
5.6.190.0070.04320.61
5.6.180.0200.06020.61
5.6.170.0270.06320.50
5.6.160.0070.06020.54
5.6.150.0000.07318.29
5.6.140.0000.04718.15
5.6.130.0070.06318.14
5.6.120.0030.06321.14
5.6.110.0170.07021.11
5.6.100.0100.06720.97
5.6.90.0030.08321.13
5.6.80.0170.04020.35
5.5.350.0130.08020.49
5.5.340.0030.05018.09
5.5.330.0030.04320.19
5.5.320.0530.06020.38
5.5.310.0170.04020.30
5.5.300.0070.08318.03
5.5.290.0070.08018.03
5.5.280.0000.07020.64
5.5.270.0070.07320.87
5.5.260.0100.08320.72
5.5.250.0170.07720.57
5.5.240.0200.04320.34

preferences:
40.42 ms | 401 KiB | 5 Q