3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function doStuff(array $a, $b = null); } class Bar implements Foo { public function doStuff($a, $b = null) { var_dump($a, $b); } } $a = new Bar(); $a->doStuff([1,2,3,4], 'asdsad'); $a->doStuff([5,6,7,8]);

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.01116.75
8.3.50.0150.00316.46
8.3.40.0120.00318.68
8.3.30.0110.00718.46
8.3.20.0070.00020.16
8.3.10.0040.00423.66
8.3.00.0040.00419.54
8.2.180.0110.01118.16
8.2.170.0110.00322.96
8.2.160.0100.00320.57
8.2.150.0080.00024.18
8.2.140.0070.01024.66
8.2.130.0050.00326.16
8.2.120.0040.00417.38
8.2.110.0030.00620.93
8.2.100.0070.00417.72
8.2.90.0000.00819.17
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0040.00718.07
8.2.40.0040.00421.24
8.2.30.0040.00417.93
8.2.20.0000.00817.54
8.2.10.0040.00418.11
8.2.00.0000.00718.04
8.1.280.0120.00325.92
8.1.270.0090.00920.38
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00621.31
8.1.230.0070.00417.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00317.23
8.1.190.0030.00617.10
8.1.180.0030.00518.10
8.1.170.0050.00318.28
8.1.160.0040.00421.99
8.1.150.0000.00718.79
8.1.140.0000.00817.46
8.1.130.0000.00717.68
8.1.120.0050.00317.37
8.1.110.0040.00417.34
8.1.100.0040.00417.40
8.1.90.0040.00417.33
8.1.80.0000.00817.47
8.1.70.0030.00517.44
8.1.60.0000.00717.60
8.1.50.0040.00417.41
8.1.40.0060.00317.48
8.1.30.0030.00617.66
8.1.20.0000.00717.63
8.1.10.0030.00517.36
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.34
8.0.270.0000.00717.25
8.0.260.0030.00317.23
8.0.250.0080.00016.92
8.0.240.0000.00816.92
8.0.230.0030.00516.86
8.0.220.0000.00716.92
8.0.210.0040.00416.78
8.0.200.0000.00816.93
8.0.190.0070.00016.83
8.0.180.0000.00816.96
8.0.170.0040.00416.86
8.0.160.0000.00716.81
8.0.150.0030.00316.92
8.0.140.0050.00316.74
8.0.130.0040.00413.31
8.0.120.0040.00416.83
8.0.110.0000.00816.79
8.0.100.0040.00416.77
8.0.90.0070.00016.91
8.0.80.0070.00716.91
8.0.70.0000.00716.89
8.0.60.0080.00016.90
8.0.50.0040.00416.77
8.0.30.0110.00817.02
8.0.20.0070.01217.40
8.0.10.0000.00716.98
8.0.00.0100.01016.65
7.4.330.0050.00015.08
7.4.320.0000.00616.50
7.4.300.0000.00616.40
7.4.290.0070.00016.40
7.4.280.0070.00016.57
7.4.270.0070.00016.64
7.4.260.0070.00316.36
7.4.250.0030.00516.45
7.4.240.0000.00716.48
7.4.230.0000.00816.46
7.4.220.0080.00816.52
7.4.210.0070.00716.52
7.4.200.0030.00316.48
7.4.160.0120.00416.61
7.4.150.0090.00917.40
7.4.140.0210.00317.86
7.4.130.0080.00916.56
7.4.120.0090.00716.42
7.4.110.0130.00616.20
7.4.100.0030.01816.34
7.4.90.0110.00616.38
7.4.80.0140.00419.39
7.4.70.0120.00416.58
7.4.60.0080.01216.55
7.4.50.0040.00416.40
7.4.40.0030.01416.57
7.4.30.0180.00616.55
7.4.10.0100.01015.00
7.4.00.0070.01014.97
7.3.330.0000.00513.06
7.3.320.0000.00513.11
7.3.310.0030.00316.25
7.3.300.0030.00316.20
7.3.290.0090.00816.21
7.3.280.0090.00516.23
7.3.270.0150.00617.40
7.3.260.0120.00616.41
7.3.250.0060.01216.30
7.3.240.0090.00916.53
7.3.230.0080.00816.46
7.3.210.0150.00616.38
7.3.200.0130.00316.27
7.3.190.0210.01216.29
7.3.180.0030.01616.44
7.3.170.0060.00916.50
7.3.160.0130.00416.34
7.3.130.0110.00314.80
7.3.120.0070.00714.64
7.3.110.0060.00914.69
7.3.100.0070.00314.76
7.3.90.0060.00614.64
7.3.80.0070.00714.89
7.3.70.0070.00714.73
7.3.60.0090.00914.80
7.3.50.0000.01414.74
7.3.40.0090.00614.82
7.3.30.0060.00614.75
7.3.20.0030.01016.43
7.3.10.0080.00816.60
7.3.00.0000.01016.36
7.2.330.0100.00716.61
7.2.320.0090.00916.57
7.2.310.0040.01616.55
7.2.300.0120.00316.46
7.2.290.0040.01316.61
7.2.260.0000.01814.96
7.2.250.0070.01114.58
7.2.240.0070.01014.84
7.2.230.0030.01014.73
7.2.220.0030.01014.97
7.2.210.0060.00314.73
7.2.200.0100.00314.92
7.2.190.0070.01014.99
7.2.180.0100.01015.01
7.2.170.0060.00614.90
7.2.160.0060.00914.94
7.2.150.0040.00716.89
7.2.140.0070.00716.89
7.2.130.0060.00616.74
7.2.120.0070.00716.63
7.2.110.0030.01216.80
7.2.100.0080.00317.01
7.2.90.0060.00917.00
7.2.80.0090.00616.88
7.2.70.0030.01216.98
7.2.60.0090.00516.97
7.2.50.0000.01516.88
7.2.40.0030.00717.07
7.2.30.0140.00017.00
7.2.20.0060.00916.89
7.2.10.0060.00616.78
7.2.00.0060.01118.26
7.1.330.0090.00615.57
7.1.320.0060.00615.65
7.1.310.0120.00315.68
7.1.300.0040.01215.66
7.1.290.0000.01815.58
7.1.280.0090.00315.66
7.1.270.0000.01715.37
7.1.260.0030.01315.42
7.1.250.0000.01415.71
7.1.240.0070.00415.38
7.1.230.0000.01215.79
7.1.220.0080.00815.55
7.1.210.0100.00715.53
7.1.200.0050.01015.46
7.1.190.0100.00315.57
7.1.180.0110.00415.74
7.1.170.0000.00915.70
7.1.160.0000.01515.58
7.1.150.0040.00815.79
7.1.140.0000.00815.84
7.1.130.0090.00915.69
7.1.120.0070.01115.79
7.1.110.0030.01015.38
7.1.100.0000.01416.86
7.1.90.0030.01115.83
7.1.80.0050.00515.82
7.1.70.0020.01216.43
7.1.60.0070.01217.87
7.1.50.0080.01216.12
7.1.40.0090.00015.62
7.1.30.0060.01015.74
7.1.20.0060.00915.51
7.1.10.0100.00315.70
7.1.00.0070.04018.96
7.0.330.0040.00815.24
7.0.320.0040.01214.85
7.0.310.0040.01115.24
7.0.300.0060.00315.21
7.0.290.0070.00715.20
7.0.280.0000.01415.36
7.0.270.0030.01415.29
7.0.260.0060.00915.48
7.0.250.0080.00315.29
7.0.240.0070.00715.37
7.0.230.0040.01215.10
7.0.220.0070.00315.25
7.0.210.0000.01115.23
7.0.200.0080.00515.92
7.0.190.0000.01015.43
7.0.180.0030.00615.44
7.0.170.0130.00615.15
7.0.160.0090.00615.34
7.0.150.0060.00615.18
7.0.140.0100.00315.38
7.0.130.0100.00015.41
7.0.120.0000.00915.13
7.0.110.0070.04317.50
7.0.100.0070.04317.47
7.0.90.0050.04517.62
7.0.80.0070.04617.57
7.0.70.0050.04717.71
7.0.60.0070.04417.68
7.0.50.0090.03617.78
7.0.40.0020.02916.61
7.0.30.0070.02216.73
7.0.20.0100.02416.57
7.0.10.0050.02316.57
7.0.00.0050.02516.61
5.6.400.0100.00013.92
5.6.390.0110.00414.53
5.6.380.0040.00414.47
5.6.370.0070.00714.37
5.6.360.0100.00014.25
5.6.350.0060.01014.23
5.6.340.0030.01114.25
5.6.330.0040.01214.22
5.6.320.0070.00414.18
5.6.310.0000.01214.46
5.6.300.0000.00814.50
5.6.290.0030.00914.46
5.6.280.0030.02217.59
5.6.270.0120.00314.36
5.6.260.0080.04317.53
5.6.250.0100.03817.54
5.6.240.0070.02517.43
5.6.230.0030.04517.32
5.6.220.0070.04217.43
5.6.210.0020.04817.29
5.6.200.0110.03817.43
5.6.190.0060.02317.33
5.6.180.0000.02717.44
5.6.170.0050.02317.37
5.6.160.0030.02317.55
5.6.150.0060.02417.33
5.6.140.0030.02717.32
5.6.130.0030.04717.45
5.6.120.0070.02217.45
5.6.110.0000.03117.33
5.6.100.0030.02617.34
5.6.90.0070.02417.36
5.6.80.0020.03417.11
5.6.70.0050.02417.09
5.6.60.0050.02317.03
5.6.50.0060.02217.09
5.6.40.0060.02217.07
5.6.30.0040.02216.99
5.6.20.0090.02017.00
5.6.10.0050.02316.83
5.6.00.0080.02517.17
5.5.380.0110.03515.86
5.5.370.0100.03915.81
5.5.360.0050.04415.85
5.5.350.0060.04215.91
5.5.340.0030.04216.13
5.5.330.0090.02715.98
5.5.320.0030.02216.05
5.5.310.0050.02316.04
5.5.300.0030.02516.00
5.5.290.0030.02315.93
5.5.280.0050.03316.15
5.5.270.0050.02716.04
5.5.260.0090.02016.01
5.5.250.0080.01815.79
5.5.240.0020.02715.63
5.5.230.0040.02215.76
5.5.220.0040.02015.78
5.5.210.0050.02815.88
5.5.200.0020.02615.78
5.5.190.0060.02115.91
5.5.180.0020.02715.80
5.5.170.0030.01414.23
5.5.160.0050.02515.77
5.5.150.0050.02715.68
5.5.140.0040.02415.66
5.5.130.0070.02215.87
5.5.120.0080.01715.69
5.5.110.0030.02715.65
5.5.100.0020.02315.36
5.5.90.0060.02015.56
5.5.80.0070.02215.52
5.5.70.0010.02615.45
5.5.60.0020.03215.67
5.5.50.0100.01815.74
5.5.40.0070.04015.68
5.5.30.0080.03815.65
5.5.20.0070.03415.62
5.5.10.0130.03515.56
5.5.00.0020.04315.57
5.4.450.0050.02315.17
5.4.440.0020.03315.26
5.4.430.0050.02015.19
5.4.420.0050.02015.17
5.4.410.0050.02015.24
5.4.400.0070.02214.87
5.4.390.0070.02014.86
5.4.380.0050.02514.91
5.4.370.0080.02514.87
5.4.360.0080.02414.90
5.4.350.0050.02014.88
5.4.340.0040.01914.93
5.4.330.0050.00510.79
5.4.320.0010.02314.99
5.4.310.0040.02214.86
5.4.300.0000.02814.95
5.4.290.0050.02115.01
5.4.280.0050.02214.86
5.4.270.0050.02214.79
5.4.260.0040.01814.87
5.4.250.0040.01914.88
5.4.240.0030.02314.98
5.4.230.0030.02414.89
5.4.220.0060.03114.98
5.4.210.0020.02514.85
5.4.200.0020.03814.89
5.4.190.0060.03615.05
5.4.180.0050.02814.79
5.4.170.0070.03714.99
5.4.160.0030.03914.92
5.4.150.0100.03814.78
5.4.140.0080.03213.59
5.4.130.0080.02313.56
5.4.120.0060.03513.65
5.4.110.0030.04313.68
5.4.100.0080.03813.62
5.4.90.0100.03813.58
5.4.80.0030.03713.61
5.4.70.0050.04113.67
5.4.60.0050.03713.67
5.4.50.0120.03313.68
5.4.40.0080.03713.61
5.4.30.0080.03313.59
5.4.20.0040.04113.75
5.4.10.0060.03013.78
5.4.00.0070.03313.41

preferences:
50.12 ms | 400 KiB | 5 Q