3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { } class Bar extends Foo { } function foo(Foo $a) { return null; } $a = new Bar(); foo($a);

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.0150.00018.43
8.3.50.0050.01221.27
8.3.40.0110.00718.64
8.3.30.0100.00320.21
8.3.20.0040.00420.59
8.3.10.0050.00220.95
8.3.00.0040.00423.39
8.2.180.0120.00316.61
8.2.170.0140.00722.96
8.2.160.0130.00020.37
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00720.94
8.2.110.0090.00019.45
8.2.100.0040.00717.59
8.2.90.0040.00419.05
8.2.80.0000.00719.37
8.2.70.0120.00017.50
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0040.00718.22
8.2.30.0050.00319.41
8.2.20.0030.00517.50
8.2.10.0000.00717.57
8.2.00.0020.00517.59
8.1.280.0140.00725.92
8.1.270.0080.00023.99
8.1.260.0110.00426.35
8.1.250.0000.00928.09
8.1.240.0050.00522.53
8.1.230.0050.00520.85
8.1.220.0040.00418.77
8.1.210.0050.00318.83
8.1.200.0080.00317.21
8.1.190.0080.00017.16
8.1.180.0030.00618.10
8.1.170.0030.00618.59
8.1.160.0040.00418.72
8.1.150.0050.00218.52
8.1.140.0000.00717.37
8.1.130.0000.00717.86
8.1.120.0000.00717.25
8.1.110.0070.00017.38
8.1.100.0050.00317.45
8.1.90.0000.00717.31
8.1.80.0050.00317.42
8.1.70.0030.00317.36
8.1.60.0100.00017.52
8.1.50.0080.00017.46
8.1.40.0060.00317.52
8.1.30.0050.00317.53
8.1.20.0000.00917.49
8.1.10.0040.00417.48
8.1.00.0050.00217.35
8.0.300.0080.00019.96
8.0.290.0030.00316.93
8.0.280.0030.00318.29
8.0.270.0000.00717.19
8.0.260.0030.00316.82
8.0.250.0000.00716.85
8.0.240.0030.00716.95
8.0.230.0000.00716.84
8.0.220.0030.00316.78
8.0.210.0000.00716.88
8.0.200.0030.00316.98
8.0.190.0000.00716.82
8.0.180.0040.00416.87
8.0.170.0040.00416.89
8.0.160.0020.00516.72
8.0.150.0000.00816.72
8.0.140.0030.00616.73
8.0.130.0000.00513.35
8.0.120.0040.00416.86
8.0.110.0000.00716.82
8.0.100.0030.00516.77
8.0.90.0040.00416.77
8.0.80.0120.00916.90
8.0.70.0040.00416.76
8.0.60.0070.00016.83
8.0.50.0050.00216.66
8.0.30.0070.01217.02
8.0.20.0130.00717.40
8.0.10.0030.00316.88
8.0.00.0080.01016.59
7.4.330.0050.00014.90
7.4.320.0040.00416.46
7.4.300.0000.00616.62
7.4.290.0030.00516.51
7.4.280.0030.00316.40
7.4.270.0000.00616.63
7.4.260.0050.00013.28
7.4.250.0070.00016.43
7.4.240.0070.00016.55
7.4.230.0030.00316.66
7.4.220.0090.00916.56
7.4.210.0060.01116.51
7.4.200.0070.00016.62
7.4.190.0040.00416.54
7.4.160.0170.00316.38
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0130.00716.52
7.4.120.0110.00616.46
7.4.110.0060.01216.43
7.4.100.0100.01316.26
7.4.90.0040.01416.39
7.4.80.0130.00319.39
7.4.70.0110.00816.45
7.4.60.0100.01016.29
7.4.50.0040.00416.50
7.4.40.0060.00922.77
7.4.30.0100.01016.64
7.4.00.0090.00914.71
7.3.330.0000.00613.22
7.3.320.0000.00513.04
7.3.310.0050.00316.27
7.3.300.0030.00316.20
7.3.290.0130.00316.24
7.3.280.0110.00616.17
7.3.270.0060.01217.40
7.3.260.0100.00718.24
7.3.250.0100.00616.45
7.3.240.0070.01016.51
7.3.230.0130.00316.39
7.3.210.0040.01216.41
7.3.200.0090.01319.39
7.3.190.0060.01016.21
7.3.180.0100.00516.25
7.3.170.0030.01316.34
7.3.160.0080.01116.46
7.3.120.0060.01214.63
7.3.110.0040.01514.89
7.3.100.0110.00314.58
7.3.90.0090.00614.87
7.3.80.0030.01014.69
7.3.70.0110.00614.63
7.3.60.0000.01014.94
7.3.50.0030.01014.77
7.3.40.0130.00314.93
7.3.30.0090.00314.78
7.3.20.0060.00916.63
7.3.10.0100.00716.29
7.3.00.0040.01116.39
7.2.330.0100.00716.22
7.2.320.0100.00716.70
7.2.310.0100.01116.54
7.2.300.0030.02316.68
7.2.290.0130.00316.50
7.2.250.0060.01215.02
7.2.240.0090.00915.12
7.2.230.0070.00715.11
7.2.220.0000.01615.11
7.2.210.0000.01314.62
7.2.200.0070.01014.96
7.2.190.0070.00714.84
7.2.180.0100.00314.88
7.2.170.0090.00614.91
7.2.00.0060.01219.11
7.1.330.0060.00915.81
7.1.320.0070.00715.91
7.1.310.0000.01215.38
7.1.300.0000.01115.67
7.1.290.0140.00015.41
7.1.280.0040.00815.81
7.1.270.0060.00715.68
7.1.260.0060.00615.63
7.1.100.0130.00018.20
7.1.70.0040.00416.72
7.1.60.0140.01019.17
7.1.50.0100.01616.95
7.1.00.0000.04022.41
7.0.200.0000.01016.76
7.0.140.0070.07022.09
7.0.60.0170.07319.92
7.0.50.0130.07317.95
7.0.40.0030.04320.15
7.0.30.0300.05020.13
7.0.20.0200.05020.07
7.0.10.0170.07020.06
7.0.00.0100.07720.09
5.6.280.0000.07021.11
5.6.210.0130.07020.55
5.6.200.0130.07718.19
5.6.190.0170.08020.39
5.6.180.0170.07720.48
5.6.170.0300.04320.44
5.6.160.0130.08020.55
5.6.150.0130.07718.28
5.6.140.0100.07018.21
5.6.130.0070.04318.15
5.6.120.0100.08021.02
5.6.110.0070.08021.00
5.6.100.0100.08720.98
5.6.90.0000.04721.04
5.6.80.0070.03720.39
5.5.350.0070.05320.30
5.5.340.0100.07718.03
5.5.330.0200.06020.56
5.5.320.0030.04320.52
5.5.310.0300.07020.24
5.5.300.0170.06718.09
5.5.290.0030.06018.02
5.5.280.0170.06720.73
5.5.270.0100.05020.85
5.5.260.0130.07320.80
5.5.250.0100.05320.68
5.5.240.0230.08020.25
5.4.450.1870.04719.56
5.4.440.1830.04319.12
5.4.430.2170.04019.54
5.4.420.1800.04319.21
5.4.410.1970.04019.04
5.4.400.1900.03718.95
5.4.390.1730.03719.24
5.4.380.2000.04719.24
5.4.370.2070.04318.98
5.4.360.2030.04719.27
5.4.350.2000.04719.00
5.4.340.2070.04319.31
5.4.320.2070.03718.95
5.4.310.1830.05019.15
5.4.300.2170.03319.03
5.4.290.2030.04319.21
5.4.280.2100.04019.05
5.4.270.2130.03019.16
5.4.260.1400.04318.98
5.4.250.1870.03019.23
5.4.240.1870.03718.99
5.4.230.1970.03318.94
5.4.220.1870.04019.18
5.4.210.2030.03319.20
5.4.200.2270.04319.23
5.4.190.2200.05019.11
5.4.180.2130.03318.93
5.4.170.1770.03718.93
5.4.160.0070.03718.97
5.4.150.0070.04319.11
5.4.140.1100.06316.40
5.4.130.1830.04016.38
5.4.120.2200.03716.40
5.4.110.1870.03316.58
5.4.100.1700.03316.59
5.4.90.1970.03716.63
5.4.80.1970.02716.44
5.4.70.1870.03716.55
5.4.60.2200.04716.22
5.4.50.1970.04016.27
5.4.40.1970.04316.16
5.4.30.0000.05316.53
5.4.20.0070.07716.41
5.4.10.0900.05016.21
5.4.00.1930.04015.73
5.3.290.2070.04014.78
5.3.280.1830.03714.71
5.3.270.2070.04014.57
5.3.260.2030.04714.57
5.3.250.2130.04014.66
5.3.240.1830.03714.71
5.3.230.1970.03714.71
5.3.220.2100.04314.64
5.3.210.1870.04314.63
5.3.200.2130.04014.55
5.3.190.2070.04314.53
5.3.180.2070.04014.52
5.3.170.2100.04014.70
5.3.160.1800.03714.46
5.3.150.2100.04014.72
5.3.140.2100.03314.60
5.3.130.2070.04014.44
5.3.120.2130.03714.55
5.3.110.2100.04014.46
5.3.100.1800.04014.12
5.3.90.1770.04014.03
5.3.80.1830.03713.93
5.3.70.2200.03313.94
5.3.60.2130.03313.91
5.3.50.1930.04313.88
5.3.40.1770.04013.85
5.3.30.1870.03313.84
5.3.20.1870.03013.75
5.3.10.2070.04313.66
5.3.00.1970.04713.55
5.2.170.1770.03711.77
5.2.160.1730.03711.77
5.2.150.1700.03011.77
5.2.140.1530.02711.77
5.2.130.1830.02711.77
5.2.120.1770.03711.77
5.2.110.1800.03011.77
5.2.100.1800.03711.77
5.2.90.1730.02711.77
5.2.80.1770.02711.77
5.2.70.1530.03311.77
5.2.60.1830.02711.77
5.2.50.1530.03011.77
5.2.40.1400.03311.77
5.2.30.1230.03011.77
5.2.20.1300.03011.77
5.2.10.1300.02311.77
5.2.00.1330.03711.77
5.1.60.1470.03011.77
5.1.50.1230.02311.77
5.1.40.1400.03311.77
5.1.30.1300.02011.77
5.1.20.1300.02711.77
5.1.10.1470.03011.77
5.1.00.1300.02711.77
5.0.50.0600.02011.77
5.0.40.0770.02011.77
5.0.30.0600.03311.77
5.0.20.0700.02011.77
5.0.10.0600.02011.77
5.0.00.0700.03711.77
4.4.90.0000.02011.77
4.4.80.0030.02011.77
4.4.70.0000.02011.77
4.4.60.0030.01311.77
4.4.50.0000.01711.77
4.4.40.0030.02011.77
4.4.30.0030.01311.77
4.4.20.0200.02011.77
4.4.10.0600.01711.77
4.4.00.0670.03311.77
4.3.110.0630.01311.77
4.3.100.0600.01711.77
4.3.90.0670.02011.77
4.3.80.0630.02311.77
4.3.70.0830.01011.77
4.3.60.0900.01711.77
4.3.50.0830.02311.77
4.3.40.0700.02011.77
4.3.30.0370.01311.77
4.3.20.0370.02311.77
4.3.10.0300.01311.77
4.3.00.0300.01311.77

preferences:
64.47 ms | 401 KiB | 5 Q