3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function getStuff() { return "stuff"; } } class Bar extends Foo { public function getStuff() { return strtoupper($this->getOtherStuff()); } public function getOtherStuff() { return parent::getStuff(); } }

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.70.0110.00416.58
8.3.60.0140.00318.43
8.3.50.0060.01321.99
8.3.40.0070.00718.60
8.3.30.0040.01118.66
8.3.20.0080.00018.49
8.3.10.0050.00320.96
8.3.00.0040.00419.44
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0130.00320.35
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0110.00421.00
8.2.110.0090.00020.52
8.2.100.0060.00617.59
8.2.90.0040.00418.76
8.2.80.0000.00919.39
8.2.70.0030.00517.25
8.2.60.0030.00617.88
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0080.00021.31
8.2.20.0050.00217.52
8.2.10.0040.00417.44
8.2.00.0000.01017.67
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0150.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00322.40
8.1.230.0080.00420.93
8.1.220.0030.00518.77
8.1.210.0070.00318.87
8.1.200.0030.00717.22
8.1.190.0000.00817.30
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0040.00418.64
8.1.150.0040.00418.56
8.1.140.0000.00717.24
8.1.130.0000.00717.82
8.1.120.0000.00717.32
8.1.110.0030.00517.19
8.1.100.0000.00817.23
8.1.90.0040.00417.26
8.1.80.0000.00717.29
8.1.70.0000.00717.35
8.1.60.0000.00817.42
8.1.50.0040.00417.22
8.1.40.0060.00317.29
8.1.30.0040.00417.45
8.1.20.0080.00017.43
8.1.10.0020.00517.45
8.1.00.0040.00417.30
8.0.300.0030.00519.85
8.0.290.0070.00017.05
8.0.280.0000.00818.41
8.0.270.0030.00517.01
8.0.260.0000.00816.65
8.0.250.0000.00716.82
8.0.240.0040.00416.74
8.0.230.0040.00416.86
8.0.220.0000.00616.76
8.0.210.0030.00316.77
8.0.200.0100.00016.82
8.0.190.0050.00316.83
8.0.180.0040.00416.69
8.0.170.0040.00416.77
8.0.160.0000.00716.72
8.0.150.0000.00816.78
8.0.140.0040.00416.67
8.0.130.0050.00013.20
8.0.120.0050.00316.71
8.0.110.0040.00416.67
8.0.100.0000.00716.75
8.0.90.0000.00816.73
8.0.80.0120.00616.82
8.0.70.0000.00716.76
8.0.60.0040.00416.67
8.0.50.0040.00416.88
8.0.30.0080.01016.88
8.0.20.0100.00817.40
8.0.10.0050.00316.73
8.0.00.0070.01016.42
7.4.330.0000.00415.10
7.4.320.0060.00016.46
7.4.300.0030.00316.38
7.4.290.0030.00316.27
7.4.280.0000.00716.41
7.4.270.0000.00616.47
7.4.260.0000.00513.14
7.4.250.0050.00316.48
7.4.240.0030.00316.38
7.4.230.0000.00716.29
7.4.220.0120.00916.28
7.4.210.0080.00916.44
7.4.200.0000.00716.18
7.4.190.0000.00716.64
7.4.160.0100.00616.36
7.4.150.0070.01017.40
7.4.140.0120.00617.86
7.4.130.0080.01316.32
7.4.120.0110.00616.23
7.4.110.0140.00716.30
7.4.100.0040.01416.26
7.4.90.0100.01316.11
7.4.80.0100.00719.39
7.4.70.0100.00716.34
7.4.60.0070.01116.31
7.4.50.0020.00216.33
7.4.40.0030.00622.77
7.4.30.0090.00916.35
7.4.00.0110.00314.78
7.3.330.0000.00513.04
7.3.320.0000.00713.11
7.3.310.0030.00316.16
7.3.300.0060.00016.21
7.3.290.0070.00716.18
7.3.280.0080.01116.16
7.3.270.0100.00617.40
7.3.260.0110.00618.24
7.3.250.0100.00716.30
7.3.240.0070.01016.33
7.3.230.0090.00816.47
7.3.210.0030.01316.30
7.3.200.0030.01319.39
7.3.190.0060.00916.09
7.3.180.0100.00716.15
7.3.170.0040.01116.32
7.3.160.0060.00916.22
7.3.120.0030.01314.54
7.3.10.0040.01116.33
7.3.00.0050.00516.50
7.2.330.0000.01716.33
7.2.320.0140.00916.41
7.2.310.0180.00016.57
7.2.300.0000.01616.53
7.2.290.0030.01316.50
7.2.130.0040.00816.68
7.2.120.0030.01016.46
7.2.110.0030.01016.72
7.2.100.0140.00016.55
7.2.90.0090.00916.55
7.2.80.0060.00916.73
7.2.70.0030.01016.52
7.2.60.0030.00716.55
7.2.50.0030.01216.56
7.2.40.0110.00416.58
7.2.30.0030.00716.42
7.2.20.0040.01216.80
7.2.10.0060.01016.53
7.2.00.0110.00317.77
7.1.250.0070.00715.57
7.1.100.0070.00717.92
7.1.70.0040.00416.67
7.1.60.0090.00917.18
7.1.50.0070.00716.97
7.1.40.0110.00416.51
7.1.30.0060.00916.54
7.1.20.0030.00816.67
7.1.10.0050.00516.50
7.1.00.0030.00916.63
7.0.200.0050.00216.81
7.0.190.0030.00616.70
7.0.180.0030.01016.25
7.0.170.0040.00416.25
7.0.160.0080.00416.04
7.0.150.0030.00616.36
7.0.140.0000.01316.06
7.0.130.0070.00316.37
7.0.120.0050.00516.53
7.0.110.0040.00416.20
7.0.100.0000.00716.36
7.0.90.0000.00816.08
7.0.80.0000.01116.18
7.0.70.0000.00816.19
7.0.60.0090.00616.07
7.0.50.0000.00716.34
7.0.40.0000.00815.39
7.0.30.0080.00015.39
7.0.20.0060.01015.39
7.0.10.0000.01615.39
7.0.00.0040.01515.39
5.6.300.0000.09520.82
5.6.290.0030.06420.93
5.6.280.0030.06520.99
5.6.270.0030.04421.01
5.6.260.0030.04221.04
5.6.250.0140.04221.09
5.6.240.0070.04620.97
5.6.230.0040.04220.90
5.6.220.0000.04620.97
5.6.210.0060.04121.06
5.6.200.0000.04721.00
5.6.190.0030.04020.87
5.6.180.0030.06321.04
5.6.170.0100.03221.00
5.6.160.0100.06020.83
5.6.150.0000.04320.84
5.6.140.0070.03621.00
5.6.130.0030.03921.03
5.6.120.0030.04120.94
5.6.110.0000.04920.87
5.6.100.0070.07620.81
5.6.90.0070.04620.81
5.6.80.0030.08420.21
5.6.70.0000.04720.43
5.6.60.0000.04520.21
5.6.50.0060.04820.14
5.6.40.0000.04420.38
5.6.30.0000.04320.37
5.6.20.0000.04720.13
5.6.10.0000.06220.29
5.6.00.0030.06920.27
5.5.380.0030.04617.49
5.5.370.0100.05117.53
5.5.360.0100.04517.66
5.5.350.0030.04317.43
5.5.340.0030.04717.84
5.5.330.0030.04718.18
5.5.320.0000.05818.04
5.5.310.0070.08218.12
5.5.300.0070.04217.70
5.5.290.0100.04518.04
5.5.280.0070.06318.19
5.5.270.0030.03918.17
5.5.260.0030.06118.08
5.5.250.0040.03917.84
5.5.240.0060.07517.39
5.5.230.0000.04517.08
5.5.220.0030.04717.38
5.5.210.0070.06317.46
5.5.200.0000.04117.45
5.5.190.0070.03417.54
5.5.180.0000.04217.39
5.5.160.0000.05517.43
5.5.150.0070.07717.44
5.5.140.0200.03017.05
5.5.130.0000.04117.44
5.5.120.0030.06517.41
5.5.110.0070.03817.40
5.5.100.0070.03917.35
5.5.90.0030.08517.34
5.5.80.0000.04817.31
5.5.70.0070.06717.28
5.5.60.0030.04517.27
5.5.50.0030.04217.08
5.5.40.0000.04317.24
5.5.30.0070.03616.98
5.5.20.0060.03517.34
5.5.10.0000.03917.41
5.5.00.0100.05217.36
5.4.450.0070.04519.54
5.4.440.0070.07519.22
5.4.430.0030.08519.45
5.4.420.0100.06419.43
5.4.410.0070.06619.37
5.4.400.0030.04418.92
5.4.390.0000.05019.07
5.4.380.0000.04119.18
5.4.370.0000.04419.23
5.4.360.0030.04319.07
5.4.350.0030.03919.16
5.4.340.0070.07619.08
5.4.320.0030.07018.98
5.4.310.0090.03519.09
5.4.300.0000.04619.16
5.4.290.0030.07218.93
5.4.280.0130.07218.92
5.4.270.0000.04319.08
5.4.260.0030.03618.98
5.4.250.0030.04219.07
5.4.240.0070.05619.24
5.4.230.0070.03318.97
5.4.220.0000.04219.05
5.4.210.0070.03619.11
5.4.200.0000.04519.05
5.4.190.0070.03719.07
5.4.180.0040.03518.94
5.4.170.0070.04318.97
5.4.160.0000.04019.21
5.4.150.0030.04019.18
5.4.140.0030.04516.82
5.4.130.0030.03416.72
5.4.120.0070.02916.82
5.4.110.0000.08116.76
5.4.100.0070.03616.46
5.4.90.0030.03616.80
5.4.80.0030.05916.45
5.4.70.0100.06516.61
5.4.60.0060.03816.75
5.4.50.0030.05016.71
5.4.40.0030.03716.73
5.4.30.0000.03716.66
5.4.20.0070.04316.65
5.4.10.0060.04916.68
5.4.00.0030.03515.89
5.3.290.0000.08215.39
5.3.280.0220.03515.39
5.3.270.0070.03315.39
5.3.260.0040.03915.39
5.3.250.0030.03415.39
5.3.240.0060.04115.39
5.3.230.0030.03515.39
5.3.220.0030.03515.39
5.3.210.0030.04115.39
5.3.200.0100.05315.39
5.3.190.0000.04615.39
5.3.180.0030.03515.39
5.3.170.0130.03615.39
5.3.160.0030.04315.39
5.3.150.0040.03915.39
5.3.140.0070.03115.39
5.3.130.0000.04715.39
5.3.120.0000.04215.39
5.3.110.0060.03515.39
5.3.100.0070.03115.39
5.3.90.0030.03415.39
5.3.80.0100.02915.39
5.3.70.0000.03915.39
5.3.60.0030.03915.39
5.3.50.0030.03315.39
5.3.40.0030.03415.39
5.3.30.0070.03815.39
5.3.20.0100.03615.39
5.3.10.0070.02915.39
5.3.00.0030.03515.39

preferences:
44.38 ms | 401 KiB | 5 Q