3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyParent { private $var = 0; } class Child extends MyParent { public function __construct() { $this->var = 1; } } class Abuser extends MyParent { public function get(MyParent $child) { return $child->var; } } $child = new Child(); $abuser = new Abuser(); var_dump($abuser->get($child)); //var_dump($child); //var_dump($abuser);

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.00716.74
8.3.50.0110.00622.04
8.3.40.0170.00318.84
8.3.30.0120.00319.27
8.3.20.0070.00020.16
8.3.10.0050.00321.77
8.3.00.0000.00819.26
8.2.180.0110.00416.63
8.2.170.0070.01422.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.50
8.2.110.0090.00019.21
8.2.100.0000.01117.63
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0050.00517.38
8.2.60.0080.00017.91
8.2.50.0090.00318.07
8.2.40.0030.00618.01
8.2.30.0040.00418.04
8.2.20.0030.00517.49
8.2.10.0040.00417.96
8.2.00.0040.00417.50
8.1.280.0150.00625.92
8.1.270.0080.00018.75
8.1.260.0070.00026.35
8.1.250.0020.00528.09
8.1.240.0040.00422.20
8.1.230.0090.00317.65
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0090.00017.13
8.1.190.0000.00817.23
8.1.180.0070.00318.10
8.1.170.0060.00320.38
8.1.160.0040.00421.85
8.1.150.0040.00418.79
8.1.140.0040.00417.36
8.1.130.0000.00717.82
8.1.120.0050.00317.42
8.1.110.0000.00717.30
8.1.100.0030.00317.43
8.1.90.0000.00717.26
8.1.80.0000.00717.44
8.1.70.0030.00317.29
8.1.60.0000.00817.49
8.1.50.0060.00317.51
8.1.40.0070.00017.38
8.1.30.0040.00417.67
8.1.20.0000.00717.64
8.1.10.0040.00417.34
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0030.00317.20
8.0.260.0060.00017.25
8.0.250.0000.00716.85
8.0.240.0030.00616.79
8.0.230.0000.00716.86
8.0.220.0000.00716.90
8.0.210.0050.00316.89
8.0.200.0040.00416.91
8.0.190.0040.00416.83
8.0.180.0040.00416.95
8.0.170.0030.00516.95
8.0.160.0040.00416.92
8.0.150.0050.00316.88
8.0.140.0070.00016.86
8.0.130.0000.00713.34
8.0.120.0040.00416.73
8.0.110.0050.00316.78
8.0.100.0070.00016.93
8.0.90.0000.00816.69
8.0.80.0120.00916.82
8.0.70.0000.00816.89
8.0.60.0040.00416.89
8.0.50.0050.00316.77
8.0.30.0120.01417.19
8.0.20.0120.00717.40
8.0.10.0080.00016.81
8.0.00.0090.00916.81
7.4.330.0000.00515.07
7.4.320.0000.00616.44
7.4.300.0060.00016.45
7.4.290.0000.00716.43
7.4.280.0000.00816.60
7.4.270.0030.00316.66
7.4.260.0040.00416.35
7.4.250.0040.00416.62
7.4.240.0030.00516.59
7.4.230.0080.00016.32
7.4.220.0070.01716.46
7.4.210.0100.01016.71
7.4.200.0080.00016.60
7.4.160.0030.01316.40
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0120.00916.40
7.4.120.0140.00516.45
7.4.110.0100.00716.52
7.4.100.0080.00816.52
7.4.90.0100.00616.50
7.4.80.0090.00919.39
7.4.70.0190.00416.38
7.4.60.0070.00816.54
7.4.50.0000.00716.26
7.4.40.0140.00316.56
7.4.30.0070.01716.57
7.4.10.0070.01315.10
7.4.00.0100.00814.96
7.3.330.0000.00513.23
7.3.320.0130.00013.18
7.3.310.0000.00716.30
7.3.300.0000.00616.20
7.3.290.0080.00916.28
7.3.280.0090.00816.23
7.3.270.0030.01317.40
7.3.260.0070.01116.23
7.3.250.0100.00816.48
7.3.240.0100.00616.59
7.3.230.0090.01416.39
7.3.210.0000.01716.27
7.3.200.0100.00719.39
7.3.190.0130.00416.59
7.3.180.0090.00616.32
7.3.170.0100.01016.41
7.3.160.0110.00716.33
7.3.130.0110.00814.91
7.3.120.0070.01014.62
7.3.110.0100.01014.83
7.3.100.0070.00715.02
7.3.90.0030.01414.80
7.3.80.0030.01014.76
7.3.70.0070.01014.82
7.3.60.0040.00814.64
7.3.50.0030.01014.59
7.3.40.0030.00714.87
7.3.30.0000.01514.68
7.3.20.0060.00616.43
7.3.10.0000.01016.46
7.3.00.0120.00716.58
7.2.330.0080.01116.61
7.2.320.0100.00516.41
7.2.310.0130.00316.76
7.2.300.0060.01216.40
7.2.290.0070.01016.77
7.2.260.0100.00315.11
7.2.250.0090.00915.13
7.2.240.0090.00614.61
7.2.230.0070.01014.86
7.2.220.0040.01115.19
7.2.210.0130.00315.03
7.2.200.0030.00915.04
7.2.190.0070.00714.98
7.2.180.0060.01014.73
7.2.170.0000.01115.00
7.2.160.0030.01014.79
7.2.150.0120.00016.84
7.2.140.0100.00316.89
7.2.130.0070.01016.73
7.2.120.0060.00716.69
7.2.110.0030.01016.66
7.2.100.0070.00416.71
7.2.90.0070.01016.95
7.2.80.0070.00716.66
7.2.70.0070.00716.84
7.2.60.0070.00716.69
7.2.50.0070.00716.85
7.2.40.0080.00816.78
7.2.30.0050.01016.84
7.2.20.0110.00116.97
7.2.10.0030.00816.87
7.2.00.0050.00717.52
7.1.330.0070.00715.76
7.1.320.0090.00615.77
7.1.310.0070.00715.89
7.1.300.0060.00615.83
7.1.290.0040.00915.61
7.1.280.0040.00815.86
7.1.270.0030.00715.86
7.1.260.0030.00615.67
7.1.250.0100.00515.62
7.1.240.0070.00715.84
7.1.230.0030.00615.89
7.1.220.0030.00915.63
7.1.210.0040.01215.88
7.1.200.0000.01015.75
7.1.190.0000.01015.80
7.1.180.0000.01315.81
7.1.170.0030.00815.89
7.1.160.0060.00315.84
7.1.150.0030.01015.75
7.1.140.0060.00615.76
7.1.130.0040.01115.94
7.1.120.0050.00515.57
7.1.110.0050.00515.64
7.1.100.0060.00517.07
7.1.90.0080.00015.90
7.1.80.0000.00915.88
7.1.70.0070.00816.58
7.1.60.0070.00517.61
7.1.50.0070.01216.39
7.1.40.0060.00315.71
7.1.30.0030.00915.86
7.1.20.0110.00015.80
7.1.10.0040.00815.88
7.1.00.0050.04019.12
7.0.330.0060.00915.52
7.0.320.0030.01015.32
7.0.310.0090.00315.29
7.0.300.0060.00315.17
7.0.290.0070.00415.36
7.0.280.0030.01015.41
7.0.270.0040.00415.36
7.0.260.0080.00015.11
7.0.250.0030.01015.27
7.0.240.0060.00615.59
7.0.230.0040.00415.39
7.0.220.0000.01315.56
7.0.210.0120.00015.57
7.0.200.0370.00714.95
7.0.190.0030.01015.21
7.0.180.0060.00615.30
7.0.170.0060.00615.52
7.0.160.0070.00715.43
7.0.150.0000.00915.44
7.0.140.0020.04318.82
7.0.130.0000.01015.48
7.0.120.0060.00615.43
7.0.110.0040.00815.32
7.0.100.0070.00715.27
7.0.90.0060.00615.48
7.0.80.0040.00815.43
7.0.70.0000.01015.52
7.0.60.0090.02917.79
7.0.50.0100.03016.70
7.0.40.0090.04516.72
7.0.30.0140.04016.72
7.0.20.0140.03416.83
7.0.10.0140.04416.72
7.0.00.0050.04416.73
5.6.400.0060.00614.42
5.6.390.0100.00614.28
5.6.380.0000.01614.45
5.6.370.0030.00914.29
5.6.360.0090.00614.10
5.6.350.0000.01314.06
5.6.340.0100.00014.35
5.6.330.0100.00314.17
5.6.320.0030.01014.04
5.6.310.0080.00814.52
5.6.300.0070.00314.21
5.6.290.0060.00314.17
5.6.280.0070.03517.85
5.6.270.0080.00014.30
5.6.260.0030.00614.25
5.6.250.0070.00314.44
5.6.240.0070.00714.46
5.6.230.0000.01714.35
5.6.220.0000.01114.69
5.6.210.0030.04717.54
5.6.200.0070.04916.33
5.6.190.0130.02617.57
5.6.180.0150.03317.38
5.6.170.0160.02217.37
5.6.160.0100.03817.49
5.6.150.0100.03816.23
5.6.140.0040.03116.35
5.6.130.0070.02216.38
5.6.120.0120.02817.63
5.6.110.0050.04817.76
5.6.100.0020.02717.65
5.6.90.0070.03617.56
5.6.80.0050.04617.20
5.6.70.0090.02717.37
5.6.60.0040.00414.36
5.6.50.0080.00414.10
5.6.40.0070.00714.23
5.6.30.0030.01014.23
5.6.20.0090.00614.56
5.6.10.0070.00314.38
5.6.00.0100.00314.25
5.5.380.0130.00314.21
5.5.370.0000.01114.30
5.5.360.0060.00614.19
5.5.350.0120.04917.36
5.5.340.0050.04016.17
5.5.330.0030.02617.19
5.5.320.0080.05017.25
5.5.310.0210.02517.30
5.5.300.0050.02416.06
5.5.290.0090.02216.23
5.5.280.0090.04517.59
5.5.270.0030.02317.57
5.5.260.0060.04617.57
5.5.250.0070.04717.40
5.5.240.0080.04117.26
5.5.230.0030.00914.27
5.5.220.0070.00714.20
5.5.210.0080.00814.03
5.5.200.0090.00314.18
5.5.190.0070.00714.09
5.5.180.0100.00314.30
5.5.170.0060.00814.09
5.5.160.0070.00713.91
5.5.150.0070.00714.19
5.5.140.0060.00914.42
5.5.130.0030.01013.82
5.5.120.0120.00614.02
5.5.110.0040.00714.20
5.5.100.0090.00314.04
5.5.90.0060.00914.32
5.5.80.0070.00714.20
5.5.70.0040.00714.25
5.5.60.0030.00914.38
5.5.50.0060.00614.49
5.5.40.0030.00714.19
5.5.30.0100.00713.98
5.5.20.0060.00913.91
5.5.10.0030.01313.95
5.5.00.0000.01613.88
5.4.450.0270.03015.25
5.4.440.0390.04015.21
5.4.430.0480.03315.15
5.4.420.0560.02915.20
5.4.410.0050.03214.93
5.4.400.0580.04114.65
5.4.390.0780.02514.79
5.4.380.0830.03514.87
5.4.370.0600.03414.96
5.4.360.0690.02414.87
5.4.350.0630.03214.86
5.4.340.0700.03614.85
5.4.330.0030.00610.93
5.4.320.0570.03014.92
5.4.310.0540.02914.91
5.4.300.0580.03014.80
5.4.290.0600.03514.88
5.4.280.0800.03914.82
5.4.270.0570.02514.76
5.4.260.0700.03814.75
5.4.250.0700.04314.71
5.4.240.0730.03314.95
5.4.230.0730.02814.86
5.4.220.0670.03014.62
5.4.210.0670.03214.79
5.4.200.0620.03013.92
5.4.190.0580.03314.62
5.4.180.0650.02814.83
5.4.170.0770.03314.78
5.4.160.0710.04014.53
5.4.150.0720.04014.87
5.4.140.0780.03713.81
5.4.130.0570.03513.71
5.4.120.0320.03113.58
5.4.110.0070.03313.74
5.4.100.0100.02913.63
5.4.90.0070.03013.71
5.4.80.0640.02913.64
5.4.70.0620.03213.69
5.4.60.0670.03713.75
5.4.50.0610.03113.68
5.4.40.0570.02913.61
5.4.30.0620.03713.80
5.4.20.0630.02913.64
5.4.10.0600.03313.62
5.4.00.0720.02813.53
5.3.290.1130.07714.70
5.3.280.1230.05014.78
5.3.270.1430.06714.74
5.3.260.1270.06014.63
5.3.250.1170.06314.79
5.3.240.1270.04314.64
5.3.230.1200.05014.77
5.3.220.1000.06014.79
5.3.210.0970.06014.70
5.3.200.1270.08014.68
5.3.190.1200.07714.77
5.3.180.1370.06314.54
5.3.170.1130.06014.59
5.3.160.1200.05014.57
5.3.150.1000.06014.60
5.3.140.1200.05314.76
5.3.130.1100.06714.65
5.3.120.0930.06314.68
5.3.110.1300.06314.60
5.3.100.1100.06014.09
5.3.90.1230.04714.24
5.3.80.1330.06014.25
5.3.70.1270.05014.06
5.3.60.1230.05014.17
5.3.50.1230.04714.03
5.3.40.1530.06314.01
5.3.30.0900.06314.03
5.3.20.1230.05713.86
5.3.10.1330.04013.66
5.3.00.1330.06013.77
5.2.170.1070.04011.13
5.2.160.1100.04311.16
5.2.150.0900.05011.18
5.2.140.0900.05311.37
5.2.130.0870.04711.14
5.2.120.0830.04311.21
5.2.110.0900.06011.16
5.2.100.1130.04711.13
5.2.90.1070.04011.16
5.2.80.0970.04711.20
5.2.70.0870.04011.23
5.2.60.1170.06011.18
5.2.50.0770.04311.07
5.2.40.0130.04011.10
5.2.30.0030.05011.10
5.2.20.0130.03311.07
5.2.10.0130.03710.86
5.2.00.0100.04310.74
5.1.60.0870.0339.98
5.1.50.0730.05310.04
5.1.40.0700.04310.01
5.1.30.0830.03710.34
5.1.20.0800.05010.48
5.1.10.0930.04310.07
5.1.00.1100.04310.28
5.0.50.0430.0278.54
5.0.40.0430.0408.62
5.0.30.0500.0478.27
5.0.20.0400.0238.39
5.0.10.0330.0308.30
5.0.00.0330.0438.35
4.4.90.0330.0205.93
4.4.80.0330.0305.89
4.4.70.0430.0275.87
4.4.60.0330.0235.98
4.4.50.0370.0205.90
4.4.40.0430.0375.88
4.4.30.0370.0275.86
4.4.20.0300.0235.95
4.4.10.0370.0206.07
4.4.00.0300.0405.91
4.3.110.0300.0275.82
4.3.100.0300.0275.86
4.3.90.0300.0235.82
4.3.80.0300.0375.77
4.3.70.0400.0135.80
4.3.60.0300.0235.80
4.3.50.0370.0275.77
4.3.40.0400.0405.86
4.3.30.0200.0274.68
4.3.20.0170.0304.53
4.3.10.0230.0274.51
4.3.00.0100.0207.05

preferences:
58.22 ms | 401 KiB | 5 Q