3v4l.org

run code in 300+ PHP versions simultaneously
<?php try{ $a = new class { public function func():self{return "";} }; $res = $a->func(); var_dump($res); }catch(Throwable $ex){ echo "Catched error" .$ex->getMessage(); }

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.70.0140.00418.29
8.3.60.0140.00416.63
8.3.50.0150.00322.05
8.3.40.0030.01018.71
8.3.30.0040.01118.45
8.3.20.0000.00720.30
8.3.10.0080.00023.65
8.3.00.0060.00319.38
8.2.190.0040.01218.67
8.2.180.0120.00616.63
8.2.170.0070.01122.96
8.2.160.0110.00320.10
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00317.63
8.2.120.0070.00026.35
8.2.110.0090.00021.25
8.2.100.0120.00017.63
8.2.90.0000.00819.15
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00617.80
8.2.50.0080.00018.07
8.2.40.0040.00419.46
8.2.30.0070.00420.47
8.2.20.0030.00517.64
8.2.10.0000.00918.12
8.2.00.0040.00417.93
8.1.280.0150.00025.92
8.1.270.0060.00323.91
8.1.260.0000.00728.09
8.1.250.0030.00528.09
8.1.240.0040.00422.05
8.1.230.0070.00717.42
8.1.220.0000.00917.76
8.1.210.0040.00418.77
8.1.200.0040.00717.35
8.1.190.0040.00417.64
8.1.180.0050.00518.10
8.1.170.0060.00318.64
8.1.160.0050.00221.97
8.1.150.0070.00018.93
8.1.140.0000.01019.58
8.1.130.0000.00717.58
8.1.120.0050.00317.47
8.1.110.0030.00517.47
8.1.100.0020.00517.34
8.1.90.0000.00817.52
8.1.80.0000.00817.36
8.1.70.0030.00317.43
8.1.60.0040.00417.60
8.1.50.0030.00517.55
8.1.40.0050.00317.49
8.1.30.0000.00817.55
8.1.20.0000.00817.53
8.1.10.0090.00017.47
8.1.00.0030.00617.58
8.0.300.0030.00518.77
8.0.290.0000.00716.63
8.0.280.0070.00018.49
8.0.270.0080.00017.20
8.0.260.0030.00317.13
8.0.250.0030.00517.06
8.0.240.0030.00317.04
8.0.230.0030.00316.93
8.0.220.0030.00317.01
8.0.210.0070.00016.96
8.0.200.0030.00316.86
8.0.190.0000.00716.98
8.0.180.0040.00416.98
8.0.170.0000.00816.94
8.0.160.0000.00717.00
8.0.150.0070.00016.85
8.0.140.0040.00416.91
8.0.130.0040.00413.39
8.0.120.0000.00816.94
8.0.110.0040.00416.85
8.0.100.0050.00216.93
8.0.90.0070.00016.86
8.0.80.0040.01116.93
8.0.70.0040.00417.02
8.0.60.0050.00216.86
8.0.50.0040.00416.84
8.0.30.0060.01517.29
8.0.20.0100.00817.40
8.0.10.0000.00717.03
8.0.00.0070.01016.67
7.4.330.0060.00016.67
7.4.320.0000.00616.57
7.4.300.0030.00316.46
7.4.290.0000.00716.61
7.4.280.0000.00716.49
7.4.270.0000.00716.56
7.4.260.0040.00416.39
7.4.250.0000.00716.59
7.4.240.0040.00316.57
7.4.230.0000.00716.71
7.4.220.0130.00616.58
7.4.210.0040.01116.64
7.4.200.0070.00016.70
7.4.160.0110.00416.85
7.4.150.0120.00617.40
7.4.140.0090.00717.86
7.4.130.0110.00716.55
7.4.120.0080.01216.46
7.4.110.0140.00316.37
7.4.100.0090.01316.61
7.4.90.0060.01216.49
7.4.80.0030.01619.39
7.4.70.0090.00616.47
7.4.60.0080.00816.63
7.4.50.0000.01616.50
7.4.40.0120.00616.41
7.4.30.0110.01116.59
7.4.00.0050.01114.92
7.3.330.0060.00013.43
7.3.320.0000.00513.23
7.3.310.0070.00016.41
7.3.300.0000.00716.20
7.3.290.0080.01016.37
7.3.280.0110.00816.36
7.3.270.0060.01317.40
7.3.260.0030.01316.27
7.3.250.0110.00716.52
7.3.240.0080.00916.42
7.3.230.0090.00916.44
7.3.210.0110.00616.47
7.3.200.0090.00616.39
7.3.190.0110.00616.56
7.3.180.0060.01016.36
7.3.170.0170.00316.41
7.3.160.0030.01416.32
7.3.120.0070.01114.79
7.3.110.0100.00714.75
7.3.100.0030.00614.54
7.3.90.0060.00915.06
7.3.80.0030.01014.93
7.3.70.0000.00814.65
7.3.60.0100.00714.91
7.3.50.0070.00714.73
7.3.40.0120.00014.69
7.3.30.0100.00614.91
7.3.20.0090.00316.76
7.3.10.0080.00816.50
7.3.00.0070.00716.79
7.2.330.0090.00916.48
7.2.320.0070.01016.70
7.2.310.0030.01916.57
7.2.300.0100.00716.76
7.2.290.0040.01216.84
7.2.250.0060.01315.00
7.2.240.0060.00915.30
7.2.230.0120.00415.20
7.2.220.0030.01015.20
7.2.210.0100.00315.13
7.2.200.0060.00915.13
7.2.190.0030.01015.11
7.2.180.0030.00914.86
7.2.170.0060.00915.04
7.2.60.0070.01016.95
7.2.00.0030.00619.07
7.1.330.0030.01115.83
7.1.320.0030.01015.69
7.1.310.0060.00915.93
7.1.300.0060.00315.73
7.1.290.0090.00615.42
7.1.280.0040.01115.76
7.1.270.0070.00715.37
7.1.260.0030.00715.52
7.1.200.0070.00715.61
7.1.100.0040.00818.30
7.1.70.0060.01217.19
7.1.60.0130.00619.36
7.1.50.0060.01216.90
7.1.00.0100.07022.37
7.0.200.0090.00616.88
7.0.60.0070.05719.91
7.0.50.0070.05017.85
7.0.40.0170.07720.23
7.0.30.0530.06020.13
7.0.20.0400.06320.07
7.0.10.0070.05720.21
7.0.00.0100.05720.24
5.6.280.0000.05320.90
5.6.210.0100.08020.76
5.6.200.0170.07318.25
5.6.190.0130.06020.63
5.6.180.0430.05020.46
5.6.170.0200.08020.47
5.6.160.0070.08320.50
5.6.150.0100.05018.29
5.6.140.0030.04018.18
5.6.130.0030.04018.27
5.6.120.0100.08020.94
5.6.110.0170.07021.02
5.6.100.0100.05321.01
5.6.90.0030.04020.85
5.6.80.0100.06020.35
5.5.350.0100.06020.30
5.5.340.0030.04018.08
5.5.330.0100.07720.27
5.5.320.0000.06720.34
5.5.310.0200.04720.36
5.5.300.0100.07318.04
5.5.290.0070.03717.92
5.5.280.0030.04320.78
5.5.270.0100.08020.89
5.5.260.0070.06020.87
5.5.250.0000.04320.57
5.5.240.4200.04020.18

preferences:
27.58 ms | 401 KiB | 5 Q