3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{ private function __construct() {} } class bar extends foo{ public function __construct(){ parent::__construct(); } } $f = "foo"; $b = "bar"; new $f(print "f"); new $b(print "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.0110.00816.38
8.3.50.0050.01322.92
8.3.40.0130.00318.84
8.3.30.0100.00319.00
8.3.20.0150.00420.07
8.3.10.0030.00523.66
8.3.00.0090.00619.50
8.2.180.0070.00716.38
8.2.170.0110.00422.96
8.2.160.0070.01020.39
8.2.150.0000.00824.18
8.2.140.0060.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00021.03
8.2.110.0060.00321.06
8.2.100.0040.00717.72
8.2.90.0000.00819.08
8.2.80.0060.00317.97
8.2.70.0100.00017.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00819.63
8.2.30.0040.00418.04
8.2.20.0000.00817.68
8.2.10.0000.00718.04
8.2.00.0040.00417.65
8.1.280.0060.01325.92
8.1.270.0000.00923.91
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00620.91
8.1.230.0040.00819.01
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0070.00317.35
8.1.190.0050.00317.22
8.1.180.0030.00518.10
8.1.170.0000.00718.61
8.1.160.0040.00421.82
8.1.150.0070.00018.82
8.1.140.0070.00017.38
8.1.130.0000.00717.85
8.1.120.0030.00317.40
8.1.110.0040.00417.37
8.1.100.0000.00717.28
8.1.90.0090.00017.29
8.1.80.0080.00017.35
8.1.70.0000.00717.26
8.1.60.0030.00517.57
8.1.50.0040.00417.56
8.1.40.0000.00817.52
8.1.30.0040.00417.54
8.1.20.0040.00417.50
8.1.10.0050.00217.54
8.1.00.0000.00817.55
8.0.300.0040.00418.77
8.0.290.0050.00316.58
8.0.280.0040.00418.27
8.0.270.0030.00517.18
8.0.260.0000.00617.18
8.0.250.0000.00716.95
8.0.240.0030.00316.86
8.0.230.0000.00716.88
8.0.220.0040.00416.80
8.0.210.0070.00016.88
8.0.200.0000.00716.89
8.0.190.0000.00716.90
8.0.180.0040.00416.81
8.0.170.0050.00216.92
8.0.160.0030.00316.88
8.0.150.0050.00216.68
8.0.140.0060.00316.73
8.0.130.0030.00313.32
8.0.120.0030.00616.81
8.0.110.0070.00016.95
8.0.100.0040.00416.88
8.0.90.0050.00316.74
8.0.80.0120.00316.83
8.0.70.0050.00216.78
8.0.60.0040.00416.89
8.0.50.0000.00816.82
8.0.30.0060.01316.95
8.0.20.0040.01617.40
8.0.10.0000.00717.01
8.0.00.0110.00716.59
7.4.330.0000.00515.00
7.4.320.0030.00316.40
7.4.300.0000.00616.57
7.4.290.0040.00416.59
7.4.280.0070.00316.48
7.4.270.0000.00716.48
7.4.260.0000.00716.47
7.4.250.0040.00416.50
7.4.240.0040.00316.47
7.4.230.0030.00316.33
7.4.220.0060.01216.55
7.4.210.0110.00416.48
7.4.200.0030.00316.53
7.4.160.0120.00316.50
7.4.150.0090.01117.40
7.4.140.0080.01017.86
7.4.130.0040.02016.48
7.4.120.0090.01016.48
7.4.110.0090.01016.53
7.4.100.0180.00016.51
7.4.90.0160.00316.38
7.4.80.0070.01119.39
7.4.70.0070.01216.52
7.4.60.0100.00716.50
7.4.50.0040.00416.25
7.4.40.0080.01216.35
7.4.30.0090.00616.52
7.4.00.0100.00815.02
7.3.330.0070.00013.14
7.3.320.0020.00213.22
7.3.310.0070.00016.40
7.3.300.0000.00716.28
7.3.290.0030.01616.32
7.3.280.0090.00716.36
7.3.270.0100.01417.40
7.3.260.0090.01016.76
7.3.240.0100.00716.46
7.3.230.0110.00716.50
7.3.210.0130.00616.50
7.3.200.0070.01016.39
7.3.190.0100.01016.54
7.3.180.0070.01116.55
7.3.170.0080.00816.54
7.3.160.0080.00816.38
7.3.120.0050.01114.82
7.3.110.0100.00614.74
7.3.100.0070.01014.84
7.3.90.0050.00914.71
7.3.80.0020.01114.87
7.3.70.0050.00914.74
7.3.60.0020.01014.90
7.3.50.0070.01014.78
7.3.40.0070.00914.71
7.3.30.0090.00614.77
7.3.20.0060.00916.69
7.3.10.0080.00816.58
7.3.00.0090.00616.59
7.2.330.0100.00716.58
7.2.320.0070.01016.61
7.2.310.0030.01616.44
7.2.300.0090.00916.61
7.2.290.0100.00616.58
7.2.250.0050.01214.96
7.2.240.0090.01014.92
7.2.230.0050.01014.94
7.2.220.0090.00514.88
7.2.210.0090.00814.88
7.2.200.0060.00814.90
7.2.190.0060.00614.77
7.2.180.0060.01114.90
7.2.170.0070.00914.92
7.2.130.0150.00316.11
7.2.120.0060.01016.57
7.2.110.0120.01516.54
7.2.100.0130.00916.75
7.2.90.0150.00916.81
7.2.80.0100.01016.50
7.2.70.0100.00716.77
7.2.60.0050.01116.48
7.2.50.0100.00716.55
7.2.40.0130.00016.45
7.2.30.0180.00316.58
7.2.20.0080.00916.14
7.2.10.0150.00616.22
7.2.00.0090.00918.01
7.1.330.0050.01015.58
7.1.320.0050.00915.83
7.1.310.0100.00515.63
7.1.300.0050.01015.54
7.1.290.0080.00915.53
7.1.280.0060.00815.53
7.1.270.0080.00615.64
7.1.260.0060.00515.78
7.1.250.0210.00715.45
7.1.200.0000.01315.63
7.1.100.0000.01417.71
7.1.70.0110.00017.02
7.1.60.0110.01119.40
7.1.50.0100.01316.86
7.1.00.0100.07022.31
7.0.200.0280.00014.62
7.0.140.0070.07022.21
7.0.60.0070.07721.70
7.0.50.0100.08317.88
7.0.40.0070.08720.18
7.0.30.0300.07320.22
7.0.20.0170.04720.23
7.0.10.0070.06020.09
7.0.00.0070.04020.08
5.6.280.0070.07020.79
5.6.210.0070.08720.61
5.6.200.0070.05318.22
5.6.190.0030.05720.48
5.6.180.0570.06720.61
5.6.170.0430.06720.71
5.6.160.0070.05320.62
5.6.150.0030.08318.28
5.6.140.0070.05318.25
5.6.130.0100.07318.16
5.6.120.0100.07721.10
5.6.110.0100.07021.13
5.6.100.0100.08320.95
5.6.90.0070.08020.96
5.6.80.0130.07720.51
5.5.350.0170.07020.37
5.5.340.0100.07318.09
5.5.330.0100.03720.37
5.5.320.0630.07020.42
5.5.310.0270.07320.35
5.5.300.0070.05018.08
5.5.290.0070.08717.99
5.5.280.0100.05020.77
5.5.270.0130.06020.77
5.5.260.0100.06320.86
5.5.250.0030.09320.69
5.5.240.0130.07720.16
5.4.450.3800.03719.30
5.4.440.2570.04019.59
5.4.430.3300.04019.57
5.4.420.3870.04719.61
5.4.410.3970.03719.34
5.4.400.3800.04019.27
5.4.390.3870.03719.11
5.4.380.3700.04019.23
5.4.370.4030.03318.93
5.4.360.3930.04319.07
5.4.350.3930.04019.15
5.4.340.3970.03019.23
5.4.320.3930.04319.26
5.4.310.3700.04019.17
5.4.300.3970.04019.13
5.4.290.4430.03019.22
5.4.280.3970.03719.13
5.4.270.4070.05019.22
5.4.260.3770.04018.92
5.4.250.3670.04019.14
5.4.240.3770.03319.13
5.4.230.3800.04319.04
5.4.220.4330.04319.21
5.4.210.4870.04019.10
5.4.200.3730.03719.23
5.4.190.4000.03019.05
5.4.180.3770.03318.96
5.4.170.3530.04019.24
5.4.160.3930.03719.17
5.4.150.3700.04318.93
5.4.140.3930.03716.56
5.4.130.3930.03316.43
5.4.120.4800.04316.49
5.4.110.3800.04016.51
5.4.100.3730.03016.55
5.4.90.3870.03316.61
5.4.80.3800.03016.48
5.4.70.3630.03716.35
5.4.60.3770.02316.50
5.4.50.4000.03716.54
5.4.40.4000.03316.34
5.4.30.4000.04016.50
5.4.20.3930.03716.48
5.4.10.4330.03016.45
5.4.00.3830.03715.79
5.3.290.4800.03014.67
5.3.280.4930.04314.61
5.3.270.4000.02714.61
5.3.260.4100.04014.60
5.3.250.3930.04014.66
5.3.240.3970.03714.66
5.3.230.3870.03314.62
5.3.220.4830.03714.65
5.3.210.4030.03714.63
5.3.200.3930.04014.63
5.3.190.3330.04014.56
5.3.180.3700.03014.56
5.3.170.3870.04014.58
5.3.160.3900.03714.46
5.3.150.3730.03314.56
5.3.140.3970.04314.45
5.3.130.3970.03714.54
5.3.120.3570.03714.55
5.3.110.3900.04014.64
5.3.100.3730.03714.09
5.3.90.4000.03314.16
5.3.80.3530.03014.02
5.3.70.3870.03714.05
5.3.60.3070.03714.00
5.3.50.3030.03713.95
5.3.40.4070.02713.99
5.3.30.3630.03313.85
5.3.20.3600.03013.70
5.3.10.3070.03013.71
5.3.00.3630.03713.68
5.2.170.3100.03311.07
5.2.160.3100.02711.21
5.2.150.3200.04011.16
5.2.140.3130.03311.15
5.2.130.3230.03311.18
5.2.120.2900.02311.17
5.2.110.3100.03311.12
5.2.100.2770.03311.06
5.2.90.2770.03011.15
5.2.80.3100.02311.11
5.2.70.3030.03011.24
5.2.60.3700.03011.05
5.2.50.3300.02711.10
5.2.40.2630.03310.89
5.2.30.2470.03011.02
5.2.20.2700.03010.92
5.2.10.2400.03310.92
5.2.00.2500.02710.70
5.1.60.2600.0279.96
5.1.50.2370.02010.02
5.1.40.2430.0239.88
5.1.30.2600.02710.38
5.1.20.2500.02710.42
5.1.10.2870.02710.06
5.1.00.2500.02310.09
5.0.50.1500.0278.55
5.0.40.1400.0138.42
5.0.30.1270.0308.38
5.0.20.1500.0208.26
5.0.10.1200.0208.13
5.0.00.1330.0278.23
4.4.90.1230.0135.88
4.4.80.1300.0175.88
4.4.70.1370.0175.88
4.4.60.1330.0175.88
4.4.50.1200.0175.88
4.4.40.1230.0235.89
4.4.30.1230.0135.88
4.4.20.1370.0175.88
4.4.10.1230.0205.91
4.4.00.1570.0235.88
4.3.110.1200.0175.88
4.3.100.1470.0135.88
4.3.90.1200.0175.88
4.3.80.1470.0235.88
4.3.70.0500.0135.88
4.3.60.0470.0135.88
4.3.50.0630.0135.88
4.3.40.0970.0275.88
4.3.30.0500.0175.88
4.3.20.0700.0105.88
4.3.10.0670.0135.88
4.3.00.0630.0135.88

preferences:
53.5 ms | 401 KiB | 5 Q