3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(stdClass $a) {} try { f(0); } catch (Exception $e) { echo "Caught exception: ".get_class($e)."\n"; }

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.0140.00716.88
8.3.50.0180.00821.07
8.3.40.0070.01418.83
8.3.30.0060.01318.79
8.3.20.0040.00420.34
8.3.10.0070.00723.48
8.3.00.0070.00023.48
8.2.180.0140.00716.50
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0060.00321.05
8.2.120.0040.01426.35
8.2.110.0110.00719.44
8.2.100.0090.00317.84
8.2.90.0050.00319.22
8.2.80.0030.00617.97
8.2.70.0090.00917.36
8.2.60.0040.00417.68
8.2.50.0090.00018.07
8.2.40.0040.00422.32
8.2.30.0070.00020.67
8.2.20.0040.00417.67
8.2.10.0000.00817.98
8.2.00.0040.00417.87
8.1.280.0040.01125.92
8.1.270.0140.00423.91
8.1.260.0040.00428.09
8.1.250.0020.00528.09
8.1.240.0000.00920.61
8.1.230.0070.00417.82
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0040.00418.52
8.1.160.0030.00720.77
8.1.150.0040.00418.81
8.1.140.0070.00319.50
8.1.130.0030.00317.64
8.1.120.0020.00517.39
8.1.110.0040.00417.38
8.1.100.0080.00017.30
8.1.90.0040.00417.28
8.1.80.0030.00317.43
8.1.70.0030.00317.23
8.1.60.0000.00817.61
8.1.50.0030.00617.55
8.1.40.0000.00717.44
8.1.30.0030.00517.59
8.1.20.0000.00717.61
8.1.10.0040.00417.55
8.1.00.0030.00617.50
8.0.300.0070.00318.77
8.0.290.0000.00816.58
8.0.280.0070.00018.38
8.0.270.0000.00717.20
8.0.260.0030.00317.18
8.0.250.0000.00716.96
8.0.240.0000.00616.99
8.0.230.0030.00316.93
8.0.220.0030.00316.76
8.0.210.0070.00016.85
8.0.200.0030.00316.91
8.0.190.0090.00016.82
8.0.180.0080.00316.92
8.0.170.0030.00616.89
8.0.160.0070.00016.98
8.0.150.0000.00816.93
8.0.140.0030.00516.83
8.0.130.0050.00013.28
8.0.120.0050.00216.76
8.0.110.0040.00416.93
8.0.100.0070.00316.84
8.0.90.0000.00816.90
8.0.80.0050.01516.88
8.0.70.0000.00816.82
8.0.60.0050.00216.79
8.0.50.0000.00816.90
8.0.30.0100.01016.90
8.0.20.0080.01117.40
8.0.10.0040.00416.84
8.0.00.0110.00616.86
7.4.330.0030.00315.08
7.4.320.0070.00016.46
7.4.300.0000.00616.62
7.4.290.0000.00716.60
7.4.280.0040.00516.59
7.4.270.0040.00416.61
7.4.260.0030.00316.45
7.4.250.0030.00316.51
7.4.240.0040.00316.54
7.4.230.0000.00716.48
7.4.220.0040.01516.55
7.4.210.0110.00416.53
7.4.200.0000.00716.50
7.4.160.0060.01116.57
7.4.150.0110.00717.40
7.4.140.0160.00617.86
7.4.130.0110.00916.39
7.4.120.0100.00716.47
7.4.110.0120.01216.47
7.4.100.0060.01016.56
7.4.90.0140.00316.41
7.4.80.0060.01219.39
7.4.70.0060.00916.52
7.4.60.0090.01516.50
7.4.50.0060.00916.33
7.4.40.0130.00316.55
7.4.30.0150.00316.41
7.4.00.0100.01015.04
7.3.330.0060.00013.37
7.3.320.0050.00013.27
7.3.310.0030.00316.11
7.3.300.0040.00216.34
7.3.290.0100.00716.29
7.3.280.0080.01116.27
7.3.270.0060.01617.40
7.3.260.0060.01116.37
7.3.250.0090.00816.34
7.3.240.0170.00316.38
7.3.230.0180.00316.39
7.3.210.0120.00616.38
7.3.200.0070.01016.35
7.3.190.0090.01516.28
7.3.180.0100.00716.41
7.3.170.0160.00316.46
7.3.160.0090.00616.22
7.3.120.0040.01514.97
7.3.110.0000.02114.86
7.3.100.0070.01114.81
7.3.90.0090.00915.00
7.3.80.0070.00714.87
7.3.70.0040.00814.82
7.3.60.0070.00714.78
7.3.50.0110.00414.79
7.3.40.0070.00714.89
7.3.30.0030.00714.75
7.3.20.0040.00916.37
7.3.10.0050.00316.83
7.3.00.0070.00716.41
7.2.330.0070.01016.66
7.2.320.0030.01316.62
7.2.310.0050.01116.55
7.2.300.0130.01016.43
7.2.290.0120.00916.54
7.2.250.0070.00714.95
7.2.240.0100.00714.91
7.2.230.0030.01715.11
7.2.220.0070.01414.98
7.2.210.0110.00415.00
7.2.200.0100.00314.94
7.2.190.0030.00614.73
7.2.180.0080.00615.16
7.2.170.0060.00915.01
7.2.160.0040.00415.00
7.2.150.0000.00916.77
7.2.140.0000.01416.84
7.2.130.0030.01016.82
7.2.120.0060.00617.01
7.2.110.0090.00616.56
7.2.100.0090.00416.79
7.2.90.0000.00816.85
7.2.80.0030.01316.83
7.2.70.0030.01016.97
7.2.60.0080.00616.68
7.2.50.0100.00716.89
7.2.40.0000.01517.04
7.2.30.0040.01116.63
7.2.20.0030.01116.54
7.2.10.0060.00616.92
7.2.00.0040.00917.90
7.1.330.0090.00615.64
7.1.320.0040.01415.54
7.1.310.0030.00715.55
7.1.300.0030.00915.66
7.1.290.0000.01015.83
7.1.280.0000.00815.75
7.1.270.0030.00715.68
7.1.260.0040.00415.50
7.1.250.0070.00315.74
7.1.200.0030.00915.70
7.1.100.0040.00818.02
7.1.70.0050.00517.13
7.1.60.0140.00719.52
7.1.50.0120.00916.85
7.1.00.0130.06722.36
7.0.200.0180.00715.01
7.0.60.0170.06019.94
7.0.50.0130.06717.83
7.0.40.0000.05020.14
7.0.30.0270.03720.08
7.0.20.0170.07320.15
7.0.10.0030.08320.22
7.0.00.0070.05320.06
5.6.280.0070.04320.91
5.6.210.0100.08720.73
5.6.200.0000.05718.17
5.6.190.0070.08020.48
5.6.180.0330.06720.61
5.6.170.0270.04320.57
5.6.160.0130.07320.47
5.6.150.0100.07318.21
5.6.140.0030.06318.12
5.6.130.0000.08018.17
5.6.120.0170.06321.02
5.6.110.0070.08021.13
5.6.100.0070.08320.98
5.6.90.0100.08020.98
5.6.80.0030.08320.51
5.5.350.4230.04320.37
5.5.340.0130.08317.95
5.5.330.0130.07320.34
5.5.320.0270.04020.35
5.5.310.0200.06320.30
5.5.300.0130.06718.01
5.5.290.0070.04718.08
5.5.280.0100.04020.65
5.5.270.0030.06320.96
5.5.260.0070.08720.79
5.5.250.0000.04320.68
5.5.240.0100.03320.35

preferences:
52.92 ms | 401 KiB | 5 Q