3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class baseClass { function __construct($foo) { echo "foo is ".$foo; } } class Child extends baseClass { } $child1 = new Child('bar'); $child2 = new Child();

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.4.20.0100.01017.91
8.4.10.0100.00617.81
8.3.140.0030.00516.43
8.3.130.0050.00516.95
8.3.120.0100.00618.82
8.3.110.0040.00420.94
8.3.100.0000.00820.66
8.3.90.0070.00018.61
8.3.80.0040.00418.43
8.3.70.0200.00318.55
8.3.60.0090.00918.43
8.3.50.0110.01121.98
8.3.40.0070.00718.83
8.3.30.0170.00019.22
8.3.20.0000.00720.36
8.3.10.0040.00420.52
8.3.00.0040.00419.51
8.2.260.0060.01220.46
8.2.250.0110.00716.66
8.2.240.0070.01417.04
8.2.230.0040.00422.58
8.2.220.0100.00037.54
8.2.210.0050.00326.77
8.2.200.0060.00316.88
8.2.190.0140.01018.41
8.2.180.0070.00718.54
8.2.170.0100.00722.96
8.2.160.0150.00620.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00722.16
8.2.110.0100.00019.39
8.2.100.0080.00517.91
8.2.90.0080.00018.03
8.2.80.0070.00018.22
8.2.70.0080.00017.63
8.2.60.0000.00817.50
8.2.50.0000.00817.75
8.2.40.0080.00019.57
8.2.30.0000.00818.04
8.2.20.0000.00817.79
8.2.10.0040.00417.93
8.2.00.0030.00517.79
8.1.310.0140.00416.71
8.1.300.0060.00316.43
8.1.290.0090.00018.88
8.1.280.0110.00425.92
8.1.270.0030.00523.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.80
8.1.230.0090.00320.84
8.1.220.0030.00517.74
8.1.210.0000.00818.85
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0040.00421.88
8.1.150.0040.00418.86
8.1.140.0070.00017.32
8.1.130.0070.00017.82
8.1.120.0080.00017.42
8.1.110.0030.00617.43
8.1.100.0000.00717.44
8.1.90.0000.00717.39
8.1.80.0040.00417.39
8.1.70.0070.00017.39
8.1.60.0000.00817.47
8.1.50.0030.00617.56
8.1.40.0050.00217.53
8.1.30.0040.00417.63
8.1.20.0040.00417.64
8.1.10.0040.00417.64
8.1.00.0070.00417.45
8.0.300.0040.00419.92
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0030.00316.80
8.0.260.0040.00417.25
8.0.250.0070.00017.09
8.0.240.0040.00416.99
8.0.230.0040.00316.91
8.0.220.0030.00316.86
8.0.210.0000.00716.98
8.0.200.0030.00316.91
8.0.190.0030.00616.97
8.0.180.0070.00316.90
8.0.170.0080.00016.94
8.0.160.0000.00717.02
8.0.150.0030.00316.79
8.0.140.0040.00416.89
8.0.130.0000.00613.39
8.0.120.0040.00417.01
8.0.110.0040.00416.95
8.0.100.0000.00716.79
8.0.90.0000.00816.79
8.0.80.0090.00916.85
8.0.70.0040.00416.84
8.0.60.0040.00416.79
8.0.50.0050.00316.78
8.0.30.0090.00917.02
8.0.20.0130.00717.41
8.0.10.0040.00417.08
8.0.00.0090.01016.81
7.4.330.0000.00615.07
7.4.320.0030.00316.37
7.4.300.0030.00316.62
7.4.290.0040.00416.58
7.4.280.0030.00616.40
7.4.270.0080.00016.49
7.4.260.0030.00316.59
7.4.250.0000.00716.55
7.4.240.0000.00716.55
7.4.230.0030.00516.60
7.4.220.0160.00316.45
7.4.210.0070.01416.64
7.4.200.0000.00716.48
7.4.150.0080.00917.40
7.4.140.0130.00617.86
7.4.130.0040.01216.60
7.4.120.0090.01116.52
7.4.110.0060.00916.55
7.4.100.0100.00716.45
7.4.90.0080.00816.57
7.4.80.0000.01719.39
7.4.70.0110.00616.42
7.4.60.0100.00516.45
7.4.50.0090.00016.34
7.4.40.0100.01016.67
7.4.30.0070.01016.47
7.4.00.0110.00514.85
7.3.330.0000.00613.30
7.3.320.0030.00313.36
7.3.310.0030.00316.13
7.3.300.0030.00316.37
7.3.290.0060.01316.35
7.3.280.0050.01016.43
7.3.270.0100.01017.40
7.3.260.0130.00616.43
7.3.250.0130.00716.42
7.3.240.0150.00916.52
7.3.230.0100.00616.40
7.3.210.0030.01316.42
7.3.200.0030.01819.39
7.3.190.0070.01416.38
7.3.180.0060.01016.50
7.3.170.0030.01416.39
7.3.160.0030.01316.42
7.3.120.0060.01214.88
7.3.110.0030.01414.81
7.3.100.0030.01214.89
7.3.90.0070.00714.88
7.3.80.0110.00614.74
7.3.70.0070.01014.68
7.3.60.0090.00614.54
7.3.50.0040.00714.77
7.3.40.0030.00714.80
7.3.30.0090.00614.73
7.3.20.0030.01216.71
7.3.10.0030.00616.69
7.3.00.0100.00716.56
7.2.330.0040.01416.79
7.2.320.0060.01116.82
7.2.310.0060.01216.39
7.2.300.0040.01616.68
7.2.290.0030.01716.79
7.2.250.0040.01215.24
7.2.240.0040.01515.18
7.2.230.0070.00715.09
7.2.220.0060.00614.93
7.2.210.0060.00615.23
7.2.200.0070.01014.98
7.2.190.0070.01014.98
7.2.180.0060.00614.96
7.2.170.0030.01014.86
7.2.160.0030.01014.88
7.2.150.0120.00016.85
7.2.140.0060.00916.65
7.2.130.0100.00616.58
7.2.120.0060.01017.09
7.2.110.0000.01116.70
7.2.100.0070.00316.65
7.2.90.0090.00616.91
7.2.80.0030.01116.79
7.2.70.0030.01016.92
7.2.60.0060.00616.82
7.2.50.0070.01016.77
7.2.40.0030.01017.02
7.2.30.0040.01116.60
7.2.20.0070.01017.05
7.2.10.0100.00016.88
7.2.00.0070.00518.08
7.1.330.0120.00415.58
7.1.320.0090.00315.71
7.1.310.0100.00715.35
7.1.300.0000.01515.39
7.1.290.0060.00615.54
7.1.280.0030.01215.31
7.1.270.0050.00515.43
7.1.260.0060.00915.39
7.1.250.0030.00615.50
7.1.240.0100.00715.59
7.1.230.0000.01215.64
7.1.220.0100.00315.45
7.1.210.0040.00715.49
7.1.200.0080.00515.45
7.1.190.0060.01015.58
7.1.180.0130.00015.65
7.1.170.0000.01315.26
7.1.160.0030.00615.46
7.1.150.0100.00315.52
7.1.140.0070.00615.67
7.1.130.0000.01015.49
7.1.120.0000.01015.68
7.1.110.0100.00015.61
7.1.100.0070.00516.75
7.1.90.0090.00315.43
7.1.80.0070.00715.39
7.1.70.0040.01116.26
7.1.60.0030.01317.52
7.1.50.0050.00816.21
7.1.40.0070.00715.60
7.1.30.0090.00615.74
7.1.20.0080.00415.52
7.1.10.0000.01415.38
7.1.00.0030.04418.86
7.0.330.0030.01315.10
7.0.320.0070.00314.97
7.0.310.0070.00315.34
7.0.300.0060.00315.21
7.0.290.0070.00715.00
7.0.280.0090.00615.23
7.0.270.0040.00715.06
7.0.260.0090.00014.84
7.0.250.0070.00715.26
7.0.240.0060.00615.21
7.0.230.0000.01415.39
7.0.220.0100.00315.25
7.0.210.0000.01415.18
7.0.200.0050.00615.78
7.0.190.0070.00715.32
7.0.180.0060.00315.19
7.0.170.0060.00315.23
7.0.160.0100.00715.21
7.0.150.0060.01015.46
7.0.140.0030.03918.65
7.0.130.0060.00615.35
7.0.120.0040.00714.92
7.0.110.0030.00615.43
7.0.100.0000.00814.77
7.0.90.0000.01315.41
7.0.80.0080.00415.14
7.0.70.0070.00715.36
7.0.60.0060.04217.58
7.0.50.0050.03616.64
7.0.40.0030.03716.92
7.0.30.0090.03116.73
7.0.20.0170.04316.80
7.0.10.0180.04116.59
7.0.00.0070.02816.56
5.6.400.0000.01214.34
5.6.390.0040.01114.19
5.6.380.0000.01014.24
5.6.370.0040.00814.21
5.6.360.0030.01014.33
5.6.350.0100.00614.09
5.6.340.0150.00014.17
5.6.330.0040.00814.45
5.6.320.0060.00614.13
5.6.310.0060.00314.26
5.6.300.0030.00614.41
5.6.290.0040.01114.15
5.6.280.0100.03717.72
5.6.270.0060.00314.13
5.6.260.0110.00314.43
5.6.250.0060.00914.49
5.6.240.0030.01214.12
5.6.230.0040.01114.05
5.6.220.0060.00614.24
5.6.210.0070.03917.35
5.6.200.0080.04616.13
5.6.190.0100.02217.46
5.6.180.0100.02717.16
5.6.170.0150.04317.39
5.6.160.0060.02217.48
5.6.150.0070.04416.25
5.6.140.0040.02416.06
5.6.130.0050.03016.16
5.6.120.0020.02817.52
5.6.110.0050.04717.51
5.6.100.0050.04217.57
5.6.90.0070.04517.60
5.6.80.0100.04317.38
5.6.70.2230.02617.26
5.6.60.0040.00814.20
5.6.50.0030.00714.31
5.6.40.0040.01114.29
5.6.30.0040.01114.18
5.6.20.0060.00614.25
5.6.10.0030.01414.04
5.6.00.0030.00914.01
5.5.380.0000.01814.20
5.5.370.0040.01113.83
5.5.360.0030.00614.19
5.5.350.0080.04417.28
5.5.340.0070.03915.83
5.5.330.0090.03017.23
5.5.320.0110.02916.99
5.5.310.0130.04717.28
5.5.300.0070.04316.05
5.5.290.0100.04215.98
5.5.280.0150.03717.35
5.5.270.0080.03317.16
5.5.260.0070.04317.51
5.5.250.0070.04417.06
5.5.240.0180.03816.93
5.5.230.0120.00613.78
5.5.220.0070.01013.63
5.5.210.0000.01613.81
5.5.200.0000.01113.88
5.5.190.0130.00613.83
5.5.180.0000.01613.77
5.5.170.0030.01214.12
5.5.160.0030.01313.74
5.5.150.0060.00913.83
5.5.140.0060.00813.95
5.5.130.0000.01014.05
5.5.120.0060.01114.26
5.5.110.0130.00513.80
5.5.100.0080.00814.13
5.5.90.0120.00814.04
5.5.80.0210.00013.63
5.5.70.0070.00713.67
5.5.60.0080.01214.13
5.5.50.0070.01013.58
5.5.40.0120.00913.69
5.5.30.0090.01313.89
5.5.20.0150.00414.18
5.5.10.0060.01313.79
5.5.00.0140.00714.18
5.4.450.0530.02215.05
5.4.440.0430.03815.13
5.4.430.0470.02215.12
5.4.420.0330.00415.26
5.4.410.0380.00214.95
5.4.400.0330.00215.08
5.4.390.0330.00415.05
5.4.380.0350.00314.99
5.4.370.0320.00514.94
5.4.360.0350.00414.82
5.4.350.0380.00114.91
5.4.340.0330.00714.94
5.4.330.0030.01010.81
5.4.320.0040.02011.67
5.4.310.0050.02211.57
5.4.300.0050.02111.59
5.4.290.0040.02211.76
5.4.280.0040.02111.63
5.4.270.0030.02311.60
5.4.260.0070.02111.58
5.4.250.0070.02011.70
5.4.240.0040.02211.69
5.4.230.0040.02311.65
5.4.220.0050.02011.56
5.4.210.0050.02111.55
5.4.200.0050.02211.58
5.4.190.0060.02011.48
5.4.180.0060.02111.70
5.4.170.0050.02211.66
5.4.160.0070.02111.52
5.4.150.0040.02111.55
5.4.140.0060.02011.47
5.4.130.0040.02111.42
5.4.120.0080.01811.40
5.4.110.0020.02511.27
5.4.100.0040.02311.44
5.4.90.0060.01811.50
5.4.80.0040.02411.52
5.4.70.0050.02211.52
5.4.60.0050.02011.39
5.4.50.0070.01911.25
5.4.40.0020.02411.33
5.4.30.0040.02211.37
5.4.20.0070.01711.45
5.4.10.0040.02111.40
5.4.00.0050.02111.19
5.3.290.0050.04112.80
5.3.280.0060.03812.71
5.3.270.0070.03712.72
5.3.260.0090.03712.72
5.3.250.0060.03712.71
5.3.240.0040.03912.72
5.3.230.0050.04012.71
5.3.220.0050.03812.68
5.3.210.0080.03912.68
5.3.200.0030.03912.68
5.3.190.0030.04112.68
5.3.180.0070.03512.67
5.3.170.0050.03712.66
5.3.160.0050.04012.67
5.3.150.0060.03712.68
5.3.140.0080.03912.66
5.3.130.0090.05012.66
5.3.120.0090.03512.66
5.3.110.0050.03912.66
5.3.100.0040.03912.12
5.3.90.0040.03812.10
5.3.80.0060.03612.09
5.3.70.0060.03712.09
5.3.60.0080.03412.07
5.3.50.0070.03512.02
5.3.40.0040.03812.02
5.3.30.0050.03511.98
5.3.20.0040.03611.76
5.3.10.0080.03111.73
5.3.00.0050.03611.73
5.2.170.0030.0329.22
5.2.160.0030.0309.22
5.2.150.0030.0329.22
5.2.140.0030.0329.22
5.2.130.0040.0309.18
5.2.120.0030.0309.18
5.2.110.0040.0309.18
5.2.100.0090.0249.18
5.2.90.0080.0259.18
5.2.80.0050.0299.17
5.2.70.0050.0309.17
5.2.60.0090.0259.13
5.2.50.0030.0329.09
5.2.40.0070.0279.07
5.2.30.0050.0299.05
5.2.20.0030.0319.03
5.2.10.0050.0278.94
5.2.00.0060.0278.80
5.1.60.0080.0208.09
5.1.50.0050.0248.09
5.1.40.0060.0228.06
5.1.30.0050.0258.41
5.1.20.0030.0278.44
5.1.10.0030.0268.16
5.1.00.0030.0268.16
5.0.50.0050.0196.64
5.0.40.0010.0216.50
5.0.30.0050.0306.31
5.0.20.0020.0206.27
5.0.10.0050.0186.26
5.0.00.0020.0316.25
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0040.0144.75
4.4.60.0020.0164.75
4.4.50.0030.0154.77
4.4.40.0070.0234.71
4.4.30.0020.0154.76
4.4.20.0040.0144.84
4.4.10.0010.0174.85
4.4.00.0020.0264.75
4.3.110.0050.0134.67
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0030.0244.59
4.3.70.0060.0114.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0040.0133.28
4.3.20.0040.0133.26
4.3.10.0000.0173.22
4.3.00.0170.01713.28

preferences:
75.51 ms | 403 KiB | 5 Q