3v4l.org

run code in 300+ PHP versions simultaneously
<?php class school { public function test($a1=0, $a=0) { } } class college extends school { public function test() { } } $item = new college(); $item->test(true, true); $item->test();

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.0180.00318.45
8.3.30.0070.00718.44
8.3.20.0080.00820.04
8.3.10.0090.00623.53
8.3.00.0050.00223.51
8.2.170.0000.01418.76
8.2.160.0110.00722.96
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.14
8.2.120.0100.00726.35
8.2.110.0090.00022.08
8.2.100.0060.00617.80
8.2.90.0030.00618.92
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00017.78
8.2.50.0050.00318.07
8.2.40.0060.00322.32
8.2.30.0050.00220.68
8.2.20.0050.00217.48
8.2.10.0040.00418.02
8.2.00.0000.00817.97
8.1.270.0170.00022.00
8.1.260.0040.01228.09
8.1.250.0040.00428.09
8.1.240.0040.00422.09
8.1.230.0050.00519.16
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.10
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0040.00418.51
8.1.160.0040.00420.54
8.1.150.0000.00718.77
8.1.140.0050.00319.41
8.1.130.0030.00317.53
8.1.120.0030.00517.25
8.1.110.0040.00417.29
8.1.100.0050.00217.32
8.1.90.0030.00317.36
8.1.80.0030.00517.22
8.1.70.0000.00717.20
8.1.60.0000.00917.28
8.1.50.0000.00817.34
8.1.40.0000.00817.24
8.1.30.0050.00317.52
8.1.20.0040.00417.44
8.1.10.0040.00417.31
8.1.00.0080.00017.31
8.0.300.0000.00718.77
8.0.290.0030.00516.63
8.0.280.0000.00718.20
8.0.270.0030.00317.00
8.0.260.0030.00317.17
8.0.250.0030.00316.79
8.0.240.0000.00716.84
8.0.230.0030.00316.73
8.0.220.0040.00416.80
8.0.210.0000.00716.75
8.0.200.0000.00616.94
8.0.190.0040.00416.87
8.0.180.0030.00516.90
8.0.170.0040.00416.87
8.0.160.0020.00516.84
8.0.150.0050.00216.60
8.0.140.0070.00016.79
8.0.130.0060.00013.24
8.0.120.0050.00316.78
8.0.110.0050.00216.67
8.0.100.0020.00516.69
8.0.90.0000.00716.80
8.0.80.0120.01016.83
8.0.70.0080.00016.86
8.0.60.0000.00716.82
8.0.50.0000.00716.61
8.0.30.0120.00816.88
8.0.20.0080.01017.40
8.0.10.0000.00716.80
8.0.00.0110.00816.60
7.4.330.0000.00516.79
7.4.320.0000.00716.52
7.4.300.0000.00816.48
7.4.290.0000.00716.50
7.4.280.0030.00316.51
7.4.270.0030.00316.50
7.4.260.0000.00716.53
7.4.250.0050.00216.59
7.4.240.0030.00416.57
7.4.230.0040.00416.35
7.4.220.0040.01116.48
7.4.210.0130.00716.61
7.4.200.0000.00716.53
7.4.160.0060.00916.38
7.4.150.0090.00917.40
7.4.140.0180.00317.86
7.4.130.0130.00316.59
7.4.120.0170.00716.58
7.4.110.0070.01016.52
7.4.100.0140.00316.61
7.4.90.0080.01216.33
7.4.80.0030.01719.39
7.4.70.0100.01016.53
7.4.60.0040.01116.24
7.4.50.0070.01016.41
7.4.40.0090.01216.56
7.4.30.0100.00616.75
7.4.10.0080.00815.19
7.4.00.0040.01415.02
7.3.330.0030.00313.30
7.3.320.0030.00313.29
7.3.310.0070.00016.16
7.3.300.0030.00316.16
7.3.290.0080.00716.28
7.3.280.0080.00916.27
7.3.270.0080.00817.40
7.3.260.0090.00616.29
7.3.250.0130.00516.33
7.3.240.0030.01316.27
7.3.230.0040.01516.39
7.3.210.0110.00716.14
7.3.200.0060.01116.32
7.3.190.0070.01116.49
7.3.180.0120.00916.24
7.3.170.0000.01716.32
7.3.160.0160.00616.33
7.3.130.0060.00914.68
7.3.120.0070.01014.50
7.3.110.0100.00814.75
7.3.100.0080.00814.75
7.3.90.0060.00814.68
7.3.80.0050.00514.75
7.3.70.0050.00914.72
7.3.60.0070.00614.73
7.3.50.0030.00814.79
7.3.40.0030.01314.64
7.3.30.0080.00514.61
7.3.20.0090.00416.45
7.3.10.0080.00616.51
7.3.00.0130.00016.60
7.2.330.0100.00716.48
7.2.320.0130.01016.63
7.2.310.0030.01816.65
7.2.300.0030.01516.58
7.2.290.0090.00916.46
7.2.260.0070.01014.97
7.2.250.0050.01315.03
7.2.240.0030.01214.88
7.2.230.0070.01014.95
7.2.220.0070.00714.78
7.2.210.0030.01115.01
7.2.200.0090.00614.89
7.2.190.0070.00814.76
7.2.180.0060.00614.69
7.2.170.0050.00914.86
7.2.160.0060.00314.87
7.2.150.0100.00316.76
7.2.140.0030.00716.77
7.2.130.0070.00716.72
7.2.120.0070.00316.79
7.2.110.0090.00616.85
7.2.100.0060.01016.79
7.2.90.0110.00316.84
7.2.80.0040.00816.90
7.2.70.0070.00416.66
7.2.60.0040.00916.69
7.2.50.0030.01016.94
7.2.40.0080.00816.70
7.2.30.0000.01016.93
7.2.20.0000.01616.75
7.2.10.0030.01016.48
7.2.00.0050.00918.03
7.1.330.0070.00715.67
7.1.320.0050.01115.57
7.1.310.0080.00315.75
7.1.300.0060.00615.59
7.1.290.0060.00515.62
7.1.280.0060.00515.61
7.1.270.0030.00715.51
7.1.260.0050.00715.64
7.1.250.0030.01015.43
7.1.240.0040.00415.70
7.1.230.0040.00815.45
7.1.220.0030.00615.68
7.1.210.0040.00415.71
7.1.200.0060.00815.59
7.1.190.0030.01315.67
7.1.180.0000.01415.53
7.1.170.0070.00715.43
7.1.160.0070.00715.70
7.1.150.0030.00615.68
7.1.140.0030.01315.50
7.1.130.0090.00615.51
7.1.120.0070.01015.66
7.1.110.0030.01015.64
7.1.100.0020.00916.56
7.1.90.0100.00715.80
7.1.80.0070.01115.36
7.1.70.0050.00816.35
7.1.60.0070.01417.55
7.1.50.0030.01416.31
7.1.40.0040.01115.76
7.1.30.0030.01015.64
7.1.20.0030.01315.51
7.1.10.0070.00715.67
7.1.00.0020.04518.90
7.0.330.0100.00315.07
7.0.320.0070.00315.29
7.0.310.0030.00515.19
7.0.300.0030.00915.36
7.0.290.0060.00615.39
7.0.280.0100.00315.23
7.0.270.0040.01115.07
7.0.260.0060.00315.33
7.0.250.0070.00415.40
7.0.240.0000.01515.48
7.0.230.0040.01115.27
7.0.220.0090.00615.35
7.0.210.0070.01015.48
7.0.200.0000.01215.85
7.0.190.0000.01215.39
7.0.180.0090.00315.17
7.0.170.0100.00315.38
7.0.160.0060.00815.32
7.0.150.0080.00615.09
7.0.140.0000.00814.98
7.0.130.0070.00715.36
7.0.120.0040.01115.39
7.0.110.0000.01115.14
7.0.100.0050.04517.53
7.0.90.0180.04817.63
7.0.80.0150.04417.54
7.0.70.0190.04417.48
7.0.60.0170.03817.69
7.0.50.0190.04017.88
7.0.40.0030.04816.70
7.0.30.0080.04016.77
7.0.20.0080.04316.73
7.0.10.0130.03816.60
7.0.00.0050.04816.71
5.6.400.0030.00614.31
5.6.390.0030.01014.26
5.6.380.0000.01514.42
5.6.370.0000.00914.45
5.6.360.0060.00914.25
5.6.350.0000.01014.29
5.6.340.0040.01114.38
5.6.330.0090.00614.43
5.6.320.0050.00514.28
5.6.310.0090.00614.51
5.6.300.0040.00414.11
5.6.290.0080.00414.59
5.6.280.0070.00714.43
5.6.270.0060.00614.59
5.6.260.0060.00614.19
5.6.250.0070.04517.50
5.6.240.0070.03217.58
5.6.230.0090.04517.40
5.6.220.0080.04717.28
5.6.210.0050.04317.43
5.6.200.0080.04217.71
5.6.190.0100.04117.73
5.6.180.0050.04717.60
5.6.170.0110.04217.64
5.6.160.0100.04717.59
5.6.150.0100.03517.58
5.6.140.0050.02717.53
5.6.130.0070.04417.67
5.6.120.0080.05017.71
5.6.110.0020.04817.61
5.6.100.0080.04317.47
5.6.90.0090.04217.67
5.6.80.0080.04117.23
5.6.70.0070.04717.46
5.6.60.0080.04117.28
5.6.50.0120.03917.26
5.6.40.0060.04317.25
5.6.30.0080.04017.18
5.6.20.0150.03217.17
5.6.10.0030.04817.25
5.6.00.0030.04917.33
5.5.380.0050.04317.29
5.5.370.0060.02417.29
5.5.360.0020.03517.26
5.5.350.0050.04317.15
5.5.340.0090.03617.59
5.5.330.0110.03117.54
5.5.320.0060.04317.51
5.5.310.0130.04017.41
5.5.300.0050.04517.71
5.5.290.0070.04517.46
5.5.280.0020.05417.39
5.5.270.0060.04717.57
5.5.260.0060.04617.47
5.5.250.0080.04217.30
5.5.240.0100.03817.12
5.5.230.0100.04117.08
5.5.220.0080.04216.99
5.5.210.0080.02817.17
5.5.200.0050.04717.01
5.5.190.0050.03517.23
5.5.180.0050.04017.10
5.5.170.0080.00814.30
5.5.160.0020.03717.08
5.5.150.0060.02017.03
5.5.140.0060.04017.14
5.5.130.0050.04217.23
5.5.120.0050.03117.06
5.5.110.0020.03217.13
5.5.100.0050.04717.12
5.5.90.0050.04317.13
5.5.80.0080.04017.05
5.5.70.0100.03817.01
5.5.60.0080.04317.17
5.5.50.0030.03017.05
5.5.40.0080.02517.14
5.5.30.0140.03117.07
5.5.20.0100.04216.89
5.5.10.0070.04217.00
5.5.00.0060.02417.11

preferences:
57.05 ms | 404 KiB | 6 Q