3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testParent { public function f1() { echo 1; } public function f2() { echo 2; } } class testChild extends testParent{ public function f2($a) { //overriding function f2 echo $a; } } $test = new testChild(); echo $test->f2('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.0040.01118.43
8.3.50.0130.00521.92
8.3.40.0110.00418.88
8.3.30.0060.00620.17
8.3.20.0070.00020.16
8.3.10.0050.00321.92
8.3.00.0040.00422.51
8.2.180.0140.00716.63
8.2.170.0070.01122.96
8.2.160.0100.01020.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.01026.16
8.2.120.0050.00319.51
8.2.110.0060.00322.27
8.2.100.0060.00617.72
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0040.00417.97
8.2.30.0090.00017.93
8.2.20.0070.00017.41
8.2.10.0050.00217.44
8.2.00.0040.00817.45
8.1.280.0110.00425.92
8.1.270.0070.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0080.00319.17
8.1.220.0000.00717.74
8.1.210.0050.00518.77
8.1.200.0090.00017.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0070.00021.89
8.1.150.0080.00018.51
8.1.140.0040.00417.34
8.1.130.0000.00817.77
8.1.120.0000.00717.38
8.1.110.0040.00417.29
8.1.100.0000.00717.37
8.1.90.0000.00717.22
8.1.80.0000.00817.22
8.1.70.0000.00717.27
8.1.60.0050.00317.45
8.1.50.0040.00417.38
8.1.40.0050.00317.38
8.1.30.0050.00317.46
8.1.20.0030.00517.52
8.1.10.0050.00317.40
8.1.00.0070.00417.32
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.30
8.0.270.0000.00717.13
8.0.260.0080.00016.80
8.0.250.0000.00716.83
8.0.240.0050.00316.81
8.0.230.0000.00716.87
8.0.220.0000.01016.84
8.0.210.0000.00716.71
8.0.200.0000.00716.84
8.0.190.0030.00616.77
8.0.180.0030.00516.78
8.0.170.0080.00016.74
8.0.160.0000.00716.77
8.0.150.0000.00716.84
8.0.140.0000.00816.82
8.0.130.0030.00313.24
8.0.120.0050.00316.80
8.0.110.0020.00516.84
8.0.100.0070.00016.68
8.0.90.0070.00016.95
8.0.80.0060.00916.81
8.0.70.0000.00816.70
8.0.60.0070.00016.77
8.0.50.0030.00516.69
8.0.30.0100.01316.99
8.0.20.0110.00717.40
8.0.10.0000.00717.01
8.0.00.0120.00716.62
7.4.330.0060.00015.00
7.4.320.0000.00616.55
7.4.300.0060.00016.61
7.4.290.0030.00316.61
7.4.280.0030.00516.48
7.4.270.0020.00516.59
7.4.260.0000.00613.27
7.4.250.0040.00416.42
7.4.240.0050.00216.51
7.4.230.0000.00716.34
7.4.220.0130.01316.71
7.4.210.0070.00916.58
7.4.200.0030.00316.54
7.4.190.0070.00016.51
7.4.160.0140.00316.52
7.4.150.0110.00817.40
7.4.140.0080.01117.86
7.4.130.0100.00816.61
7.4.120.0120.00516.44
7.4.110.0100.00716.42
7.4.100.0070.01016.50
7.4.90.0120.00616.64
7.4.80.0140.00319.39
7.4.70.0130.00316.60
7.4.60.0130.00916.54
7.4.50.0080.00016.46
7.4.40.0070.01022.77
7.4.30.0150.00616.39
7.4.00.0140.00015.19
7.3.330.0000.00513.30
7.3.320.0020.00213.17
7.3.310.0000.00716.36
7.3.300.0070.00016.36
7.3.290.0100.00316.32
7.3.280.0090.00716.25
7.3.270.0130.00717.40
7.3.260.0090.01516.31
7.3.250.0110.00916.61
7.3.240.0030.01316.56
7.3.230.0100.00716.58
7.3.210.0130.00316.43
7.3.200.0190.00419.39
7.3.190.0120.00916.47
7.3.180.0100.00716.49
7.3.170.0070.01016.47
7.3.160.0030.01316.41
7.3.120.0100.00714.81
7.3.10.0000.01416.49
7.3.00.0070.00716.54
7.2.330.0120.00816.79
7.2.320.0130.01016.53
7.2.310.0090.01316.32
7.2.300.0170.00016.31
7.2.290.0120.00616.55
7.2.130.0030.01017.02
7.2.120.0030.01316.70
7.2.110.0110.00416.79
7.2.100.0080.00416.70
7.2.90.0030.01017.08
7.2.80.0110.00316.50
7.2.70.0060.01016.84
7.2.60.0070.00716.76
7.2.50.0070.00716.88
7.2.40.0060.00916.73
7.2.30.0060.00616.56
7.2.20.0120.00016.77
7.2.10.0090.00016.76
7.2.00.0030.01218.08
7.1.250.0030.00615.50
7.1.200.0100.00315.70
7.1.100.0030.00817.96
7.1.70.0000.00717.06
7.1.60.0120.00619.43
7.1.50.0100.01316.79
7.1.00.0100.06022.42
7.0.200.0090.00916.73
7.0.140.0100.06721.91
7.0.60.0030.06319.94
7.0.50.0070.07717.96
7.0.40.0070.08720.23
7.0.30.0330.07720.11
7.0.20.0300.06020.06
7.0.10.0070.05020.30
7.0.00.0030.09020.23
5.6.280.0070.07021.13
5.6.210.0070.03720.48
5.6.200.0170.06718.22
5.6.190.0030.04320.51
5.6.180.0170.07720.50
5.6.170.0330.07720.51
5.6.160.0030.06320.57
5.6.150.0130.05718.25
5.6.140.0000.05718.15
5.6.130.0130.04018.28
5.6.120.0030.08321.13
5.6.110.0170.07320.99
5.6.100.0030.04321.01
5.6.90.0030.07721.13
5.6.80.0130.07320.51
5.6.70.0300.06720.38
5.5.350.0100.06720.30
5.5.340.0000.04318.03
5.5.330.0070.06020.21
5.5.320.0300.07020.29
5.5.310.0330.08020.23
5.5.300.0030.03718.08
5.5.290.0070.07017.98
5.5.280.0030.09020.88
5.5.270.0070.05320.89
5.5.260.0170.07020.64
5.5.250.0170.06720.59
5.5.240.0230.06320.24
5.4.450.0130.05719.39
5.4.440.1000.06019.20
5.4.430.0900.06319.16
5.4.420.1000.04319.45
5.4.410.0070.05719.23
5.4.400.0400.04718.75
5.4.390.0430.04318.50
5.4.380.0300.04718.54
5.4.370.0300.05318.74
5.4.360.0300.05318.84
5.4.350.0030.03912.02
5.4.340.0070.03712.02
5.4.320.0040.04112.51
5.4.310.0080.05212.50
5.4.300.0060.04712.51
5.4.290.0060.03712.50
5.4.280.0070.03712.39
5.4.270.0050.04612.40
5.4.260.0080.04512.40
5.4.250.0080.04512.39
5.4.240.0170.05718.82
5.4.230.0130.04718.65
5.4.220.0100.05318.79
5.4.210.0030.05718.98
5.4.200.0030.06719.00
5.4.190.0070.06018.83
5.4.180.0100.05318.89
5.4.170.0200.05018.83
5.4.160.0130.05318.94
5.4.150.0230.04318.79
5.4.140.0300.04316.53
5.4.130.0100.05716.34
5.4.120.0000.05716.56
5.4.110.0070.05016.46
5.4.100.0100.07016.67
5.4.90.0100.06316.38
5.4.80.0130.05016.61
5.4.70.0100.04716.55
5.4.60.0000.05716.45
5.4.50.0170.04016.49
5.4.40.0030.05016.51
5.4.30.0130.05316.49
5.4.20.0170.05016.54
5.4.10.0230.07016.36
5.4.00.0170.04315.97
5.3.290.0060.04212.80
5.3.280.0130.05314.42
5.3.270.0030.06014.62
5.3.260.0200.04314.83
5.3.250.0100.05714.83
5.3.240.0100.06714.68
5.3.230.0130.04714.78
5.3.220.0170.04014.56
5.3.210.0070.06714.66
5.3.200.0070.05314.59
5.3.190.0130.07014.54
5.3.180.0100.07314.57
5.3.170.0070.05014.54
5.3.160.0130.04314.74
5.3.150.0100.07314.49
5.3.140.0100.05314.65
5.3.130.0170.04714.63
5.3.120.0200.04314.57
5.3.110.0070.06714.72
5.3.100.0030.06014.13
5.3.90.0000.05714.04
5.3.80.0170.04014.20
5.3.70.0070.06314.11
5.3.60.0100.05014.17
5.3.50.0170.03714.03
5.3.40.0130.05714.18
5.3.30.0100.06713.90
5.3.20.0130.04313.79
5.3.10.0030.05013.87
5.3.00.0130.04713.81
5.2.170.0070.04311.10
5.2.160.0130.03711.23
5.2.150.0070.04711.22
5.2.140.0070.04311.23
5.2.130.0200.04311.19
5.2.120.0130.03711.32
5.2.110.0070.04011.01
5.2.100.0100.03311.10
5.2.90.0130.03711.07
5.2.80.0130.03711.09
5.2.70.0100.03711.27
5.2.60.0100.03311.02
5.2.50.0130.03711.11
5.2.40.0070.05011.21
5.2.30.0000.04310.80
5.2.20.0130.03311.05
5.2.10.0070.03710.93
5.2.00.0000.06310.71
5.1.60.0030.04010.10
5.1.50.0000.0439.98
5.1.40.0030.0339.93
5.1.30.0100.03010.32
5.1.20.0030.04310.32
5.1.10.0100.03010.00
5.1.00.0070.04010.17
5.0.50.0070.0308.60
5.0.40.0030.0308.50
5.0.30.0070.0408.22
5.0.20.0030.0278.23
5.0.10.0000.0438.23
5.0.00.0100.0378.00
4.4.90.0030.0207.30
4.4.80.0000.0237.30
4.4.70.0000.0307.30
4.4.60.0000.0237.30
4.4.50.0030.0207.30
4.4.40.0030.0437.30
4.4.30.0000.0277.30
4.4.20.0070.0177.30
4.4.10.0070.0207.30
4.4.00.0000.0477.30
4.3.110.0070.0207.30
4.3.100.0070.0177.30
4.3.90.0000.0237.30
4.3.80.0070.0277.30
4.3.70.0030.0207.30
4.3.60.0000.0207.30
4.3.50.0000.0237.30
4.3.40.0030.0337.30
4.3.30.0070.0207.30
4.3.20.0070.0177.30
4.3.10.0070.0237.30
4.3.00.0030.0307.00

preferences:
49.03 ms | 401 KiB | 5 Q