3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function foo($a) { } } class bar extends foo { public function foo($a, $b = null) { } } (new bar)->foo();

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.00416.75
8.3.50.0170.00421.21
8.3.40.0070.00718.52
8.3.30.0030.01018.67
8.3.20.0040.00420.07
8.3.10.0050.00321.80
8.3.00.0140.00423.53
8.2.180.0120.00618.03
8.2.170.0070.00722.96
8.2.160.0060.01019.39
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0080.00019.77
8.2.120.0040.00426.35
8.2.110.0060.00320.94
8.2.100.0120.00017.55
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0070.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0060.00322.18
8.2.30.0000.00719.35
8.2.20.0030.00617.55
8.2.10.0000.00718.09
8.2.00.0040.00417.98
8.1.280.0140.00025.92
8.1.270.0000.00823.96
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0110.00020.60
8.1.230.0110.00019.05
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0110.00017.23
8.1.190.0090.00017.23
8.1.180.0000.00818.10
8.1.170.0050.00318.46
8.1.160.0000.00720.62
8.1.150.0040.00418.75
8.1.140.0040.00419.48
8.1.130.0000.00717.63
8.1.120.0000.00817.24
8.1.110.0000.00817.23
8.1.100.0040.00417.15
8.1.90.0000.00717.21
8.1.80.0000.00717.33
8.1.70.0040.00417.25
8.1.60.0050.00317.50
8.1.50.0030.00617.36
8.1.40.0000.00917.49
8.1.30.0060.00317.56
8.1.20.0040.00417.48
8.1.10.0000.00717.42
8.1.00.0090.00017.43
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0050.00318.25
8.0.270.0000.00717.18
8.0.260.0030.00317.17
8.0.250.0000.00716.96
8.0.240.0070.00016.92
8.0.230.0050.00316.94
8.0.220.0050.00216.85
8.0.210.0050.00216.87
8.0.200.0030.00316.88
8.0.190.0080.00316.79
8.0.180.0000.00716.88
8.0.170.0000.00916.89
8.0.160.0030.00616.85
8.0.150.0050.00216.93
8.0.140.0030.00316.88
8.0.130.0000.00613.30
8.0.120.0080.00016.89
8.0.110.0070.00016.91
8.0.100.0040.00416.99
8.0.90.0040.00416.89
8.0.80.0120.00316.84
8.0.70.0040.00416.75
8.0.60.0070.00016.67
8.0.50.0000.00716.69
8.0.30.0050.01116.98
8.0.20.0070.01217.40
8.0.10.0000.00816.80
8.0.00.0130.00616.54
7.4.330.0050.00016.71
7.4.320.0000.00616.44
7.4.300.0000.00716.41
7.4.290.0000.00616.42
7.4.280.0070.00316.55
7.4.270.0000.00716.46
7.4.260.0080.00016.55
7.4.250.0040.00416.54
7.4.240.0010.00616.52
7.4.230.0000.00716.54
7.4.220.0130.00616.50
7.4.210.0080.00916.48
7.4.200.0030.00316.48
7.4.160.0190.00316.27
7.4.150.0030.01517.40
7.4.140.0090.00917.86
7.4.130.0120.00616.43
7.4.120.0060.01216.47
7.4.110.0100.00716.54
7.4.100.0080.00816.35
7.4.90.0090.00916.52
7.4.80.0080.01119.39
7.4.70.0070.01116.60
7.4.60.0030.01316.33
7.4.50.0030.01016.23
7.4.40.0160.00016.54
7.4.30.0070.01016.35
7.4.10.0060.01215.05
7.4.00.0050.01114.95
7.3.330.0020.00213.39
7.3.320.0000.00713.37
7.3.310.0030.00316.41
7.3.300.0000.00716.32
7.3.290.0040.00416.41
7.3.280.0070.01116.38
7.3.270.0150.00317.40
7.3.260.0100.00716.34
7.3.250.0050.01216.51
7.3.240.0110.00616.38
7.3.230.0180.00316.39
7.3.210.0040.01416.33
7.3.200.0160.00319.39
7.3.190.0160.00316.45
7.3.180.0040.01116.39
7.3.170.0030.01416.32
7.3.160.0080.00816.55
7.3.130.0070.01015.06
7.3.120.0060.01114.63
7.3.110.0060.01214.89
7.3.100.0090.00314.69
7.3.90.0000.01014.73
7.3.80.0000.01614.62
7.3.70.0040.01414.74
7.3.60.0030.01014.74
7.3.50.0040.01114.94
7.3.40.0000.01214.54
7.3.30.0100.00014.75
7.3.20.0120.00316.46
7.3.10.0040.01516.39
7.3.00.0030.01116.49
7.2.330.0090.00916.35
7.2.320.0130.00316.54
7.2.310.0140.00616.47
7.2.300.0060.01116.52
7.2.290.0130.00316.60
7.2.260.0070.00714.48
7.2.250.0030.01314.57
7.2.240.0040.01115.06
7.2.230.0090.00614.90
7.2.220.0060.01214.80
7.2.210.0030.01314.71
7.2.200.0070.00714.85
7.2.190.0000.01514.71
7.2.180.0090.00014.89
7.2.170.0060.01014.95
7.2.160.0030.00714.93
7.2.150.0080.00416.87
7.2.140.0030.01316.55
7.2.130.0040.00716.48
7.2.120.0050.00616.73
7.2.110.0040.00716.79
7.2.100.0050.00916.67
7.2.90.0060.00416.83
7.2.80.0060.00516.69
7.2.70.0030.01016.70
7.2.60.0040.01316.53
7.2.50.0040.01016.82
7.2.40.0110.00316.74
7.2.30.0100.00316.80
7.2.20.0070.00916.73
7.2.10.0030.00916.74
7.2.00.0030.01017.70
7.1.330.0000.01315.63
7.1.320.0110.00015.61
7.1.310.0070.00715.45
7.1.300.0040.00415.59
7.1.290.0000.01315.33
7.1.280.0030.00915.52
7.1.270.0030.01015.66
7.1.260.0030.01215.57
7.1.250.0050.00715.62
7.1.240.0040.00915.64
7.1.230.0020.01215.53
7.1.220.0080.00815.70
7.1.210.0080.00115.44
7.1.200.0020.00815.63
7.1.190.0030.01115.61
7.1.180.0020.00915.60
7.1.170.0080.00715.61
7.1.160.0060.00515.38
7.1.150.0060.00615.52
7.1.140.0030.00715.75
7.1.130.0020.01215.57
7.1.120.0050.00515.54
7.1.110.0040.01115.71
7.1.100.0040.00816.20
7.1.90.0110.00315.66
7.1.80.0040.00815.66
7.1.70.0070.00516.19
7.1.60.0050.01016.89
7.1.50.0070.00716.07
7.1.40.0090.00615.67
7.1.30.0060.00915.39
7.1.20.0030.01015.54
7.1.10.0080.00515.54
7.1.00.0040.03217.76
7.0.330.0070.00715.26
7.0.320.0030.00915.15
7.0.310.0060.00615.17
7.0.300.0040.01115.03
7.0.290.0050.00515.24
7.0.280.0070.00315.02
7.0.270.0080.00615.22
7.0.260.0090.00315.22
7.0.250.0020.00915.36
7.0.240.0070.00115.33
7.0.230.0060.00715.24
7.0.220.0080.00515.33
7.0.210.0060.00515.32
7.0.200.0120.00715.69
7.0.190.0060.00615.22
7.0.180.0020.00815.29
7.0.170.0070.00715.17
7.0.160.0050.01115.18
7.0.150.0060.00615.29
7.0.140.0090.00515.32
7.0.130.0060.00815.35
7.0.120.0100.00215.21
7.0.110.0100.00515.25
7.0.100.0040.00615.23
7.0.90.0070.00515.14
7.0.80.0060.00615.03
7.0.70.0040.00715.30
7.0.60.0040.02817.53
7.0.50.0090.03016.21
7.0.40.0030.03215.52
7.0.30.0130.02915.59
7.0.20.0140.03115.63
7.0.10.0070.03015.63
7.0.00.0040.03515.66
5.6.400.0070.01014.38
5.6.390.0070.00714.32
5.6.380.0040.00714.40
5.6.370.0060.00814.07
5.6.360.0070.00814.43
5.6.350.0020.01114.35
5.6.340.0070.00414.24
5.6.330.0060.00614.17
5.6.320.0060.00614.19
5.6.310.0060.00714.07
5.6.300.0020.01114.23
5.6.290.0050.00914.11
5.6.280.0030.01516.61
5.6.270.0070.00714.33
5.6.260.0070.00314.03
5.6.250.0060.00614.09
5.6.240.0050.00714.19
5.6.230.0050.00814.11
5.6.220.0090.00314.30
5.6.210.0090.01316.39
5.6.200.0050.02215.50
5.6.190.0060.01916.40
5.6.180.0140.02716.34
5.6.170.0090.02116.12
5.6.160.0040.03016.23
5.6.150.0090.02915.51
5.6.140.0060.03215.53
5.6.130.0060.03715.63
5.6.120.0050.02316.54
5.6.110.0040.03116.46
5.6.100.0070.02616.62
5.6.90.0030.03516.40
5.6.80.0110.03016.28
5.6.70.0080.00714.24
5.6.60.0080.00514.14
5.6.50.0070.00414.06
5.6.40.0050.00714.11
5.6.30.0080.00514.06
5.6.20.0060.00714.14
5.6.10.0050.01014.27
5.6.00.0000.01014.03
5.5.380.0060.00312.64
5.5.370.0100.00212.81
5.5.360.0080.00712.59
5.5.350.0100.02915.13
5.5.340.0040.02414.51
5.5.330.0020.03615.33
5.5.320.0100.02015.20
5.5.310.0090.03115.15
5.5.300.0040.01614.56
5.5.290.0040.03114.35
5.5.280.0080.03315.28
5.5.270.0010.02715.21
5.5.260.0070.03315.51
5.5.250.0080.03115.28
5.5.240.0080.01715.08
5.5.230.0040.00712.69
5.5.220.0060.00512.63
5.5.210.0040.00612.62
5.5.200.0100.00212.67
5.5.190.0070.00512.58
5.5.180.0060.00512.50
5.5.170.0040.00812.48
5.5.160.0050.00712.50
5.5.150.0080.00512.58
5.5.140.0060.00512.67
5.5.130.0020.00812.48
5.5.120.0070.00512.60
5.5.110.0060.00312.44
5.5.100.0030.00712.73
5.5.90.0070.00312.62
5.5.80.0090.00312.54
5.5.70.0050.01012.52
5.5.60.0030.00812.62
5.5.50.0020.01112.50
5.5.40.0030.00612.61
5.5.30.0070.00212.60
5.5.20.0050.00312.71
5.5.10.0080.00512.53
5.5.00.0060.00412.55

preferences:
43.2 ms | 401 KiB | 5 Q