3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function get() { throw new Exception('some error'); } } class B { function __toString() { $a = new A; return $a->get(); } } $b = new B; var_dump((string) $b);

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.0130.00316.63
8.3.50.0100.01021.94
8.3.40.0090.00618.80
8.3.30.0150.00418.85
8.3.20.0030.00520.30
8.3.10.0040.00423.70
8.3.00.0040.00420.94
8.2.180.0070.00718.29
8.2.170.0150.00022.96
8.2.160.0110.00320.39
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00419.39
8.2.120.0080.00026.35
8.2.110.0050.00520.24
8.2.100.0030.00917.91
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0060.00620.36
8.2.30.0000.00720.50
8.2.20.0040.00417.68
8.2.10.0000.00717.96
8.2.00.0040.00418.05
8.1.280.0070.00725.92
8.1.270.0040.00420.32
8.1.260.0000.00728.09
8.1.250.0060.00328.09
8.1.240.0030.00723.91
8.1.230.0030.00923.98
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0050.00220.76
8.1.150.0000.00718.93
8.1.140.0040.00419.50
8.1.130.0040.00417.79
8.1.120.0000.00817.44
8.1.110.0040.00417.34
8.1.100.0040.00417.47
8.1.90.0000.00717.44
8.1.80.0030.00517.45
8.1.70.0050.00217.44
8.1.60.0040.00417.57
8.1.50.0030.00617.56
8.1.40.0000.00817.48
8.1.30.0030.00617.48
8.1.20.0060.00317.60
8.1.10.0000.00817.50
8.1.00.0040.00417.52
8.0.300.0030.00618.77
8.0.290.0040.00416.74
8.0.280.0030.00518.43
8.0.270.0030.00317.17
8.0.260.0000.00617.18
8.0.250.0000.00717.01
8.0.240.0060.00316.89
8.0.230.0030.00316.93
8.0.220.0040.00416.94
8.0.210.0070.00016.98
8.0.200.0000.00616.95
8.0.190.0040.00416.98
8.0.180.0030.00316.98
8.0.170.0040.00416.95
8.0.160.0000.00716.87
8.0.150.0070.00016.80
8.0.140.0000.00816.85
8.0.130.0060.00013.36
8.0.120.0030.00616.80
8.0.110.0040.00416.91
8.0.100.0040.00416.83
8.0.90.0050.00216.73
8.0.80.0060.00916.92
8.0.70.0040.00416.83
8.0.60.0000.00716.87
8.0.50.0000.00717.01
8.0.30.0060.01317.06
8.0.20.0070.01317.40
8.0.10.0000.00817.02
8.0.00.0120.01016.72
7.4.330.0020.00216.74
7.4.320.0000.00716.57
7.4.300.0030.00316.63
7.4.290.0030.00716.58
7.4.280.0090.00016.63
7.4.270.0000.00716.48
7.4.260.0030.00316.57
7.4.250.0000.00716.48
7.4.240.0020.00516.43
7.4.230.0000.00816.40
7.4.220.0180.00316.62
7.4.210.0070.00716.51
7.4.200.0070.00016.38
7.4.160.0070.01616.40
7.4.150.0120.00617.40
7.4.140.0130.00717.86
7.4.130.0080.01016.59
7.4.120.0110.00916.46
7.4.110.0060.01216.60
7.4.100.0070.01316.36
7.4.90.0100.01016.59
7.4.80.0100.00719.39
7.4.70.0110.00616.44
7.4.60.0140.00316.55
7.4.50.0090.00616.29
7.4.40.0130.00316.44
7.4.30.0140.00416.65
7.4.00.0030.01214.88
7.3.330.0030.00313.22
7.3.320.0000.00513.39
7.3.310.0000.00816.37
7.3.300.0040.00316.36
7.3.290.0080.00616.37
7.3.280.0090.00816.34
7.3.270.0100.01317.40
7.3.260.0120.00616.57
7.3.250.0100.00916.40
7.3.240.0110.00816.49
7.3.230.0040.01416.39
7.3.210.0060.01116.43
7.3.200.0130.00416.44
7.3.190.0030.01516.54
7.3.180.0070.01016.36
7.3.170.0090.00616.34
7.3.160.0130.00416.59
7.3.120.0030.01614.76
7.3.110.0080.00914.66
7.3.100.0050.00514.70
7.3.90.0030.01414.57
7.3.80.0060.00315.13
7.3.70.0040.00714.98
7.3.60.0000.01014.78
7.3.50.0040.00814.86
7.3.40.0080.00814.55
7.3.30.0070.00414.92
7.3.20.0140.00016.85
7.3.10.0000.00916.80
7.3.00.0030.00616.67
7.2.330.0070.01116.67
7.2.320.0140.00316.77
7.2.310.0030.01416.79
7.2.300.0070.01016.73
7.2.290.0090.00916.70
7.2.250.0030.01715.07
7.2.240.0070.00714.93
7.2.230.0000.01115.26
7.2.220.0090.00315.03
7.2.210.0120.00314.89
7.2.200.0040.01115.13
7.2.190.0030.01014.98
7.2.180.0110.00415.10
7.2.170.0060.00315.10
7.2.60.0060.00616.94
7.2.00.0000.01819.29
7.1.330.0060.00915.64
7.1.320.0040.01115.84
7.1.310.0030.00915.84
7.1.300.0080.00415.69
7.1.290.0030.01015.45
7.1.280.0080.00415.48
7.1.270.0050.00515.39
7.1.260.0060.00615.56
7.1.200.0070.00315.27
7.1.100.0030.01017.55
7.1.70.0000.01517.18
7.1.60.0040.01919.52
7.1.50.0070.00717.00
7.1.00.0030.07722.33
7.0.200.0040.00416.62
7.0.60.0000.06719.97
7.0.50.0100.03717.85
7.0.40.0000.07020.09
7.0.30.0130.04720.06
7.0.20.0400.05320.19
7.0.10.0070.09020.07
7.0.00.0030.04320.10
5.6.280.0030.06320.91
5.6.210.0200.06020.67
5.6.200.0000.05718.22
5.6.190.0130.06720.63
5.6.180.0230.03320.48
5.6.170.0230.08020.55
5.6.160.0030.08720.61
5.6.150.0070.05018.14
5.6.140.0100.03318.21
5.6.130.0070.04318.27
5.6.120.0200.06721.04
5.6.110.0030.04720.99
5.6.100.0070.08321.11
5.6.90.0130.07320.99
5.6.80.0130.07320.52
5.5.350.3870.03720.48
5.5.340.0070.08317.98
5.5.330.0100.04020.29
5.5.320.0270.07720.30
5.5.310.0230.08020.23
5.5.300.0000.04318.14
5.5.290.0030.07317.95
5.5.280.0070.07720.74
5.5.270.0030.04020.68
5.5.260.0170.06320.73
5.5.250.0100.03720.47
5.5.240.0000.08320.27

preferences:
65.84 ms | 401 KiB | 5 Q