3v4l.org

run code in 300+ PHP versions simultaneously
<?php class super { public function a() { $this->b(); } private function b() { print "super\n"; } } class sub extends super { public function a() { $this->b(); } private function b() { print "sub\n"; } } $obj = new sub(); $obj->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.0090.01216.50
8.3.50.0150.00618.07
8.3.40.0110.00318.81
8.3.30.0100.00319.09
8.3.20.0080.00020.25
8.3.10.0040.00421.79
8.3.00.0080.00417.38
8.2.180.0160.00718.41
8.2.170.0030.01722.96
8.2.160.0100.00322.13
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00319.66
8.2.110.0070.00319.24
8.2.100.0040.00817.63
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0060.00318.32
8.2.30.0000.00817.95
8.2.20.0050.00317.59
8.2.10.0040.00418.04
8.2.00.0000.00717.60
8.1.280.0120.00325.92
8.1.270.0030.00518.92
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00420.30
8.1.160.0050.00221.85
8.1.150.0040.00418.72
8.1.140.0000.00817.25
8.1.130.0040.00417.82
8.1.120.0040.00417.28
8.1.110.0000.00817.38
8.1.100.0070.00017.34
8.1.90.0000.00717.43
8.1.80.0000.00817.41
8.1.70.0080.00017.30
8.1.60.0040.00417.49
8.1.50.0050.00317.46
8.1.40.0060.00317.38
8.1.30.0000.00817.47
8.1.20.0000.00817.62
8.1.10.0040.00417.48
8.1.00.0030.00617.36
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.35
8.0.270.0000.00717.15
8.0.260.0030.00317.25
8.0.250.0000.00716.84
8.0.240.0030.00316.88
8.0.230.0030.00316.75
8.0.220.0000.00716.82
8.0.210.0000.00716.71
8.0.200.0060.00016.77
8.0.190.0000.00716.87
8.0.180.0050.00316.88
8.0.170.0000.00816.89
8.0.160.0000.00716.84
8.0.150.0040.00416.86
8.0.140.0000.00716.68
8.0.130.0000.00613.27
8.0.120.0000.00816.63
8.0.110.0000.00716.87
8.0.100.0030.00516.77
8.0.90.0080.00016.63
8.0.80.0090.00616.82
8.0.70.0000.00716.69
8.0.60.0040.00416.87
8.0.50.0000.00716.78
8.0.30.0070.01317.16
8.0.20.0150.00817.40
8.0.10.0070.00016.85
8.0.00.0090.01016.81
7.4.330.0050.00015.03
7.4.320.0030.00316.44
7.4.300.0000.00616.60
7.4.290.0060.00016.59
7.4.280.0000.01016.39
7.4.270.0050.00216.40
7.4.260.0000.00716.55
7.4.250.0040.00416.53
7.4.240.0060.00216.55
7.4.230.0070.00016.70
7.4.220.0110.00716.45
7.4.210.0130.00616.54
7.4.200.0030.00316.69
7.4.160.0040.01116.42
7.4.150.0130.00317.40
7.4.140.0060.01117.86
7.4.130.0130.00416.39
7.4.120.0030.01516.50
7.4.110.0090.01116.46
7.4.100.0100.00716.48
7.4.90.0090.01216.45
7.4.80.0120.00619.39
7.4.70.0030.01316.42
7.4.60.0070.01016.66
7.4.50.0040.00416.25
7.4.40.0070.01016.48
7.4.30.0070.01116.41
7.4.00.0070.00614.99
7.3.330.0000.00513.03
7.3.320.0060.00613.11
7.3.310.0050.00316.14
7.3.300.0040.00416.11
7.3.290.0030.01116.22
7.3.280.0060.01016.22
7.3.270.0140.00417.40
7.3.260.0130.00316.15
7.3.250.0070.01016.46
7.3.240.0060.01116.23
7.3.230.0110.00716.39
7.3.210.0060.01516.60
7.3.200.0080.00819.39
7.3.190.0140.00316.48
7.3.180.0100.00716.23
7.3.170.0100.00716.48
7.3.160.0130.00316.25
7.3.120.0040.01114.91
7.3.110.0030.01314.75
7.3.100.0060.00914.50
7.3.90.0060.00614.71
7.3.80.0060.01114.98
7.3.70.0030.00714.86
7.3.60.0090.00914.47
7.3.50.0050.00914.41
7.3.40.0000.00914.78
7.3.30.0040.01414.76
7.3.20.0000.01116.73
7.3.10.0080.00416.57
7.3.00.0030.00716.60
7.2.330.0150.00416.77
7.2.320.0030.01416.52
7.2.310.0130.00316.61
7.2.300.0150.00916.37
7.2.290.0140.01016.31
7.2.250.0000.01814.82
7.2.240.0070.01415.27
7.2.230.0090.00615.21
7.2.220.0000.01615.20
7.2.210.0080.00415.03
7.2.200.0120.00614.76
7.2.190.0100.01014.74
7.2.180.0120.00014.96
7.2.170.0000.01514.89
7.2.00.0000.01519.46
7.1.330.0000.01515.83
7.1.320.0060.00815.61
7.1.310.0090.00615.78
7.1.300.0030.00615.51
7.1.290.0110.00415.62
7.1.280.0060.00915.80
7.1.270.0090.00615.60
7.1.260.0080.00415.55
7.1.100.0060.00617.95
7.1.70.0030.00917.14
7.1.60.0070.01719.46
7.1.50.0130.00616.54
7.1.00.0100.07022.46
7.0.200.0030.00916.75
7.0.140.0000.05022.09
7.0.60.0070.05320.02
7.0.50.0200.06017.87
7.0.40.0070.04020.27
7.0.30.0300.07720.13
7.0.20.0270.07020.23
7.0.10.0130.05720.33
7.0.00.0070.04320.16
5.6.280.0070.06721.08
5.6.210.0000.07020.46
5.6.200.0070.04018.16
5.6.190.0100.07320.46
5.6.180.3500.03720.42
5.6.170.0270.05720.57
5.6.160.0000.06320.39
5.6.150.0100.06018.29
5.6.140.0100.08018.27
5.6.130.0070.05018.14
5.6.120.0070.04721.00
5.6.110.0070.04020.89
5.6.100.0230.07020.98
5.6.90.0070.04021.00
5.6.80.0070.03720.41
5.6.70.4600.03720.28
5.5.350.0200.05320.37
5.5.340.0170.07018.07
5.5.330.0070.05020.42
5.5.320.0470.07020.42
5.5.310.0170.04720.31
5.5.300.0070.05717.95
5.5.290.0130.05718.07
5.5.280.0070.08320.87
5.5.270.0030.06020.87
5.5.260.0070.06020.77
5.5.250.0100.03720.66
5.5.240.0100.06320.13
5.4.450.0800.07019.46
5.4.440.0830.06019.32
5.4.430.1200.07719.16
5.4.420.1030.05319.48
5.4.410.0070.06319.32
5.4.400.0300.06318.65
5.4.390.0200.07318.51
5.4.380.0130.06718.73
5.4.370.0130.05718.62
5.4.360.0130.05318.75
5.4.350.0230.04718.77
5.4.340.0200.07318.74
5.4.320.0100.06018.68
5.4.310.0200.05018.73
5.4.300.0130.05318.50
5.4.290.0170.05318.75
5.4.280.0170.06318.72
5.4.270.0170.05318.54
5.4.260.0200.05018.54
5.4.250.0230.04718.50
5.4.240.0170.05318.80
5.4.230.0130.05718.43
5.4.220.0130.05718.74
5.4.210.0270.06318.57
5.4.200.0200.05316.78
5.4.190.0270.06718.66
5.4.180.0230.04718.49
5.4.170.0170.05318.57
5.4.160.0170.05318.46
5.4.150.0100.06018.73
5.4.140.0070.06316.28
5.4.130.0230.04316.26
5.4.120.0170.05016.19
5.4.110.0130.05016.28
5.4.100.0130.05316.26
5.4.90.0170.05316.23
5.4.80.0130.05316.20
5.4.70.0200.05016.18
5.4.60.0230.04016.25
5.4.50.0170.04716.27
5.4.40.0100.05716.16
5.4.30.0170.04716.24
5.4.20.0200.05016.33
5.4.10.0100.05716.27
5.4.00.0170.04715.75
5.3.290.0130.05714.73
5.3.280.0200.05014.62
5.3.270.0230.04714.74
5.3.260.0230.05714.74
5.3.250.0170.05314.60
5.3.240.0270.05014.59
5.3.230.0130.05314.64
5.3.220.0130.05314.67
5.3.210.0330.03714.75
5.3.200.0170.05014.59
5.3.190.0370.05314.70
5.3.180.0230.04314.67
5.3.170.0200.05014.70
5.3.160.0200.05014.75
5.3.150.0070.06014.56
5.3.140.0170.05014.58
5.3.130.0170.05714.72
5.3.120.0170.05314.59
5.3.110.0270.04314.59
5.3.100.0100.05714.22
5.3.90.0200.04714.15
5.3.80.0100.05714.13
5.3.70.0030.06314.07
5.3.60.0070.06313.99
5.3.50.0200.04714.02
5.3.40.0130.05314.04
5.3.30.0200.04713.85
5.3.20.0070.05713.73
5.3.10.0200.04713.64
5.3.00.0100.05713.71
5.2.170.0100.04311.21
5.2.160.0200.03311.25
5.2.150.0030.05011.27
5.2.140.0100.04311.26
5.2.130.0130.04011.11
5.2.120.0100.04311.22
5.2.110.0130.04011.18
5.2.100.0070.04711.16
5.2.90.0070.04711.16
5.2.80.0100.04311.21
5.2.70.0230.03311.34
5.2.60.0230.03011.18
5.2.50.0200.03311.02
5.2.40.0100.04311.12
5.2.30.0100.04311.18
5.2.20.0130.03711.01
5.2.10.0200.03011.05
5.2.00.0200.03310.75
5.1.60.0130.03310.10
5.1.50.0030.04310.03
5.1.40.0070.04010.11
5.1.30.0100.03710.38
5.1.20.0130.03710.34
5.1.10.0030.04310.13
5.1.00.0070.04010.20
5.0.50.0170.0208.58
5.0.40.0130.0238.40
5.0.30.0130.0378.36
5.0.20.0100.0238.18
5.0.10.0000.0378.25
5.0.00.0100.0378.15
4.4.90.0030.0235.94
4.4.80.0000.0275.96
4.4.70.0000.0275.91
4.4.60.0100.0175.86
4.4.50.0000.0275.87
4.4.40.0100.0305.91
4.4.30.0100.0175.87
4.4.20.0170.0175.92
4.4.10.0070.0235.94
4.4.00.0100.0375.94
4.3.110.0030.0275.83
4.3.100.0070.0235.91
4.3.90.0030.0235.87
4.3.80.0070.0375.80
4.3.70.0070.0275.80
4.3.60.0100.0175.82
4.3.50.0170.0105.77
4.3.40.0030.0375.82
4.3.30.0030.0204.58
4.3.20.0030.0234.53
4.3.10.0000.0274.59
4.3.00.0170.0206.92

preferences:
59.49 ms | 400 KiB | 5 Q