3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { protected $meh = true; } class Foo extends Bar { public $foo; public $gah; public function __construct() { var_dump(array_shift(get_object_vars($this))); } } new Foo;

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.40.0060.01218.71
8.3.30.0060.00918.84
8.3.20.0040.00420.33
8.3.10.0000.00823.66
8.3.00.0040.00419.26
8.2.170.0140.00322.96
8.2.160.0030.01420.35
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0020.00526.16
8.2.120.0040.00422.17
8.2.110.0090.00020.38
8.2.100.0060.00617.78
8.2.90.0040.00419.05
8.2.80.0090.00017.97
8.2.70.0050.00517.38
8.2.60.0000.00817.80
8.2.50.0030.01018.07
8.2.40.0000.00819.70
8.2.30.0040.00417.95
8.2.20.0030.00617.55
8.2.10.0000.00717.80
8.2.00.0040.00417.64
8.1.270.0080.00022.10
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0040.00819.15
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00517.10
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00421.85
8.1.150.0040.00418.75
8.1.140.0000.00717.33
8.1.130.0030.00317.67
8.1.120.0040.00317.39
8.1.110.0060.00317.29
8.1.100.0040.00417.38
8.1.90.0030.00517.30
8.1.80.0080.00017.31
8.1.70.0030.00317.29
8.1.60.0050.00517.34
8.1.50.0040.00417.44
8.1.40.0030.00617.41
8.1.30.0000.00817.59
8.1.20.0050.00317.64
8.1.10.0000.00917.51
8.1.00.0000.00717.45
8.0.300.0000.01018.77
8.0.290.0070.00016.75
8.0.280.0040.00418.36
8.0.270.0050.00217.18
8.0.260.0050.00317.06
8.0.250.0070.00016.96
8.0.240.0040.00416.88
8.0.230.0030.00316.94
8.0.220.0040.00416.84
8.0.210.0000.00716.84
8.0.200.0030.00316.77
8.0.190.0040.00716.87
8.0.180.0000.00716.75
8.0.170.0040.00416.86
8.0.160.0050.00316.71
8.0.150.0000.00816.75
8.0.140.0000.00716.79
8.0.130.0000.00613.21
8.0.120.0000.00716.67
8.0.110.0030.00616.71
8.0.100.0040.00416.60
8.0.90.0000.00716.88
8.0.80.0070.01116.82
8.0.70.0000.00716.60
8.0.60.0000.00716.94
8.0.50.0000.00716.69
8.0.30.0060.01316.89
8.0.20.0150.00717.40
8.0.10.0040.00416.81
8.0.00.0120.00816.63
7.4.330.0020.00215.00
7.4.320.0000.00716.38
7.4.300.0030.00316.33
7.4.290.0030.00316.43
7.4.280.0000.00816.39
7.4.270.0000.00716.29
7.4.260.0040.00716.41
7.4.250.0000.00816.38
7.4.240.0040.00316.46
7.4.230.0000.00716.46
7.4.220.0080.01116.44
7.4.210.0070.00716.51
7.4.200.0000.00716.33
7.4.160.0060.01016.34
7.4.150.0110.00817.40
7.4.140.0100.00717.86
7.4.130.0130.00716.43
7.4.120.0120.00516.34
7.4.110.0030.01316.46
7.4.100.0000.01716.43
7.4.90.0060.01016.49
7.4.80.0100.00619.39
7.4.70.0070.01416.30
7.4.60.0040.01416.55
7.4.50.0050.00316.23
7.4.40.0100.00716.37
7.4.30.0060.00916.27
7.4.00.0050.00914.96
7.3.330.0060.00013.12
7.3.320.0050.00013.13
7.3.310.0000.00716.30
7.3.300.0030.00316.25
7.3.290.0110.00316.28
7.3.280.0100.01016.29
7.3.270.0060.01117.40
7.3.260.0100.00716.20
7.3.250.0080.00816.38
7.3.240.0040.01916.55
7.3.230.0150.00316.39
7.3.210.0110.00616.31
7.3.200.0110.00719.39
7.3.190.0050.01116.29
7.3.180.0120.00916.34
7.3.170.0120.00816.27
7.3.160.0160.00316.40
7.3.120.0060.01214.74
7.3.110.0070.00714.32
7.3.100.0090.00914.98
7.3.90.0060.00914.59
7.3.80.0140.00414.47
7.3.70.0000.01314.33
7.3.60.0000.01514.66
7.3.50.0040.00714.59
7.3.40.0040.00714.62
7.3.30.0080.00414.59
7.3.20.0030.00616.67
7.3.10.0000.01316.63
7.3.00.0050.00516.68
7.2.330.0140.00416.18
7.2.320.0090.01316.48
7.2.310.0080.01116.25
7.2.300.0060.01016.51
7.2.290.0050.01716.40
7.2.250.0000.01414.84
7.2.240.0040.01515.10
7.2.230.0110.00414.93
7.2.220.0000.01614.85
7.2.210.0030.01414.65
7.2.200.0070.00714.81
7.2.190.0040.00414.70
7.2.180.0070.00714.56
7.2.170.0040.01114.82
7.2.160.0000.01514.81
7.2.150.0030.00616.83
7.2.140.0030.00616.71
7.2.130.0090.00316.44
7.2.120.0060.00316.73
7.2.110.0060.00616.59
7.2.100.0030.01416.68
7.2.90.0030.01416.74
7.2.80.0000.01416.85
7.2.70.0070.01116.79
7.2.60.0100.00716.48
7.2.50.0050.00516.57
7.2.40.0000.01316.62
7.2.30.0060.00316.84
7.2.20.0000.01016.45
7.2.10.0000.01516.52
7.2.00.0090.00817.90
7.1.330.0070.01015.76
7.1.320.0060.01215.70
7.1.310.0000.01015.86
7.1.300.0080.00315.48
7.1.290.0070.00715.83
7.1.280.0000.01415.84
7.1.270.0060.01015.91
7.1.260.0040.01115.52
7.1.250.0030.01315.80
7.1.240.0110.00315.47
7.1.230.0040.00815.81
7.1.220.0090.00915.82
7.1.210.0030.01215.73
7.1.200.0030.01015.74
7.1.190.0090.00615.79
7.1.180.0040.01115.47
7.1.170.0050.00515.77
7.1.160.0070.00715.76
7.1.150.0120.00315.65
7.1.140.0030.01215.51
7.1.130.0030.00615.85
7.1.120.0040.01115.49
7.1.110.0000.01315.70
7.1.100.0030.00716.75
7.1.90.0040.01115.75
7.1.80.0040.01115.70
7.1.70.0080.00916.43
7.1.60.0080.01217.50
7.1.50.0090.00816.34
7.1.40.0030.01215.37
7.1.30.0070.00715.53
7.1.20.0070.00315.78
7.1.10.0090.00615.55
7.1.00.0030.04219.03
7.0.330.0030.00915.35
7.0.320.0080.00615.43
7.0.310.0060.00615.38
7.0.300.0100.00015.43
7.0.290.0030.01015.48
7.0.280.0090.00315.53
7.0.270.0070.00315.37
7.0.260.0040.00815.38
7.0.250.0070.00715.59
7.0.240.0000.01415.44
7.0.230.0070.01015.40
7.0.220.0080.00815.17
7.0.210.0100.00315.49
7.0.200.0030.00816.22
7.0.190.0000.01715.25
7.0.180.0040.01115.15
7.0.170.0100.00415.36
7.0.160.0090.00015.44
7.0.150.0080.00815.47
7.0.140.0060.03718.79
7.0.130.0060.00915.13
7.0.120.0060.00915.25
7.0.110.0050.00515.12
7.0.100.0090.00315.33
7.0.90.0000.01315.22
7.0.80.0060.00315.52
7.0.70.0030.00715.14
7.0.60.0170.02717.82
7.0.50.0050.04316.71
7.0.40.0070.02316.83
7.0.30.0250.03816.73
7.0.20.0160.03616.77
7.0.10.0050.03216.82
7.0.00.0080.03316.76
5.6.400.0030.00914.33
5.6.390.0030.00613.96
5.6.380.0070.00714.23
5.6.370.0090.00314.54
5.6.360.0000.01114.39
5.6.350.0000.01314.15
5.6.340.0130.00314.32
5.6.330.0100.00314.09
5.6.320.0000.01014.27
5.6.310.0060.00613.91
5.6.300.0030.00714.56
5.6.290.0030.01314.20
5.6.280.0080.03817.71
5.6.270.0030.00814.19
5.6.260.0030.00614.40
5.6.250.0070.00314.51
5.6.240.0060.00614.26
5.6.230.0030.00914.30
5.6.220.0030.01013.96
5.6.210.0080.04517.52
5.6.200.0030.03016.27
5.6.190.0110.04817.31
5.6.180.0150.03817.44
5.6.170.0020.04717.20
5.6.160.0050.02817.54
5.6.150.0050.03016.15
5.6.140.0110.02716.20
5.6.130.0090.03716.34
5.6.120.0050.03217.46
5.6.110.0100.04317.55
5.6.100.0050.04017.47
5.6.90.0160.03717.68
5.6.80.0090.03617.38
5.6.70.0030.00614.24
5.6.60.0030.01014.05
5.6.50.0060.00914.23
5.6.40.0070.00314.07
5.6.30.0040.00814.16
5.6.20.0040.01214.39
5.6.10.0100.00314.10
5.6.00.0090.00614.10
5.5.380.0060.00613.97
5.5.370.0070.00314.02
5.5.360.0000.01214.02
5.5.350.0050.02917.33
5.5.340.0080.04216.01
5.5.330.0130.02117.13
5.5.320.0150.02617.14
5.5.310.0180.02017.08
5.5.300.0050.04516.20
5.5.290.0030.03016.05
5.5.280.0050.04717.31
5.5.270.0050.02317.40
5.5.260.0070.04617.31
5.5.250.0060.04017.42
5.5.240.0080.05017.17
5.5.230.0060.00913.91
5.5.220.0030.00914.11
5.5.210.0100.00314.23
5.5.200.0100.00314.05
5.5.190.0060.00613.92
5.5.180.0070.00314.04
5.5.170.0030.01214.07
5.5.160.0030.01314.09
5.5.150.0060.00914.14
5.5.140.0000.01213.77
5.5.130.0000.01013.68
5.5.120.0080.00814.05
5.5.110.0090.00613.95
5.5.100.0080.00814.04
5.5.90.0090.00914.13
5.5.80.0040.01314.12
5.5.70.0070.01113.72
5.5.60.0140.00313.87
5.5.50.0090.00914.09
5.5.40.0050.01313.84
5.5.30.0120.00914.05
5.5.20.0140.00714.02
5.5.10.0090.00913.73
5.5.00.0030.01713.88
5.4.450.0470.03015.78
5.4.440.0350.03815.77
5.4.430.0140.02915.83
5.4.420.0350.00215.86
5.4.410.0340.00415.75
5.4.400.0320.00415.74
5.4.390.0320.00415.61
5.4.380.0320.00515.61
5.4.370.0380.00215.59
5.4.360.0330.00215.54
5.4.350.0350.00515.62
5.4.340.0020.02312.06
5.4.330.0060.00312.10
5.4.320.0060.02212.30
5.4.310.0080.02012.29
5.4.300.0060.01912.30
5.4.290.0080.01812.30
5.4.280.0070.02212.24
5.4.270.0030.02312.25
5.4.260.0040.02312.25
5.4.250.0020.02212.24
5.4.240.0040.02012.25
5.4.230.0040.02212.24
5.4.220.0050.02012.24
5.4.210.0060.02412.24
5.4.200.0050.02312.24
5.4.190.0060.02012.24
5.4.180.0040.02212.24
5.4.170.0050.02212.24
5.4.160.0070.01712.24
5.4.150.0050.02212.24
5.4.140.0020.02212.08
5.4.130.0050.02212.08
5.4.120.0040.02312.05
5.4.110.0040.02412.05
5.4.100.0090.01612.05
5.4.90.0070.01912.05
5.4.80.0020.02212.05
5.4.70.0070.01912.05
5.4.60.0050.02412.05
5.4.50.0050.02112.05
5.4.40.0040.02012.05
5.4.30.0070.02012.05
5.4.20.0060.01912.05
5.4.10.0060.01912.05
5.4.00.0050.02111.79
5.3.290.0070.03812.80
5.3.280.0100.03612.71
5.3.270.0040.04512.73
5.3.260.0070.03812.72
5.3.250.0080.03512.72
5.3.240.0040.03912.72
5.3.230.0030.04012.71
5.3.220.0090.03412.68
5.3.210.0060.04212.68
5.3.200.0060.05112.68
5.3.190.0070.03712.68
5.3.180.0050.03712.68
5.3.170.0080.03512.67
5.3.160.0070.03512.68
5.3.150.0070.03612.67
5.3.140.0060.03612.66
5.3.130.0060.03912.66
5.3.120.0050.04112.66
5.3.110.0030.04412.66
5.3.100.0070.03612.12
5.3.90.0050.04012.10
5.3.80.0080.03912.09
5.3.70.0090.03412.09
5.3.60.0070.03512.07
5.3.50.0060.03612.02
5.3.40.0040.03812.02
5.3.30.0060.03411.98
5.3.20.0030.03911.76
5.3.10.0060.03411.73
5.3.00.0040.04311.71
5.2.170.0080.0269.22
5.2.160.0060.0319.22
5.2.150.0050.0299.22
5.2.140.0020.0329.21
5.2.130.0060.0359.18
5.2.120.0070.0289.18
5.2.110.0070.0299.18
5.2.100.0030.0299.18
5.2.90.0080.0319.18
5.2.80.0040.0309.18
5.2.70.0070.0319.18
5.2.60.0030.0319.13
5.2.50.0080.0269.09
5.2.40.0070.0279.07
5.2.30.0030.0309.05
5.2.20.0050.0289.04
5.2.10.0040.0288.94
5.2.00.0050.0288.80
5.1.60.0030.0248.09
5.1.50.0090.0258.09
5.1.40.0040.0288.07
5.1.30.0070.0288.42
5.1.20.0080.0278.44
5.1.10.0070.0268.16
5.1.00.0060.0238.16
5.0.50.0050.0186.64
5.0.40.0040.0196.50
5.0.30.0030.0306.31
5.0.20.0050.0226.28
5.0.10.0040.0226.26
5.0.00.0020.0326.25
4.4.90.0060.0144.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0010.0174.75
4.4.50.0030.0154.77
4.4.40.0030.0244.71
4.4.30.0050.0134.76
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0060.0214.76
4.3.110.0020.0164.67
4.3.100.0030.0144.67
4.3.90.0020.0154.63
4.3.80.0030.0244.58
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0010.0174.63
4.3.40.0040.0224.54
4.3.30.0030.0163.30
4.3.20.0020.0163.28
4.3.10.0010.0173.23
4.3.00.0100.0277.13

preferences:
52.7 ms | 400 KiB | 5 Q