3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(array $bar) { } foo(array());

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.4.20.0030.00619.17
8.4.10.0030.00617.47
8.3.150.0120.00617.22
8.3.140.0060.00916.48
8.3.130.0060.00316.38
8.3.120.0070.00718.92
8.3.110.0100.00720.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0090.00018.30
8.3.70.0110.00716.61
8.3.60.0120.00616.63
8.3.50.0080.00517.48
8.3.40.0060.01218.84
8.3.30.0110.00418.63
8.3.20.0040.00421.85
8.3.10.0000.00823.54
8.3.00.0080.00019.41
8.2.270.0160.00016.99
8.2.260.0040.00816.70
8.2.250.0040.01418.46
8.2.240.0090.00017.15
8.2.230.0030.01222.58
8.2.220.0040.00437.54
8.2.210.0120.00626.77
8.2.200.0090.00016.63
8.2.190.0040.01118.29
8.2.180.0160.00625.92
8.2.170.0060.00918.80
8.2.160.0100.01022.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0110.00426.16
8.2.120.0040.00420.94
8.2.110.0000.00922.44
8.2.100.0110.00017.66
8.2.90.0040.00417.84
8.2.80.0000.00718.09
8.2.70.0030.00517.38
8.2.60.0030.00617.78
8.2.50.0040.00418.10
8.2.40.0050.00318.16
8.2.30.0120.00217.77
8.2.20.0040.00818.60
8.2.10.0070.00517.78
8.2.00.0040.00917.73
8.1.310.0030.00616.41
8.1.300.0040.01518.50
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0000.00923.92
8.1.260.0000.00726.35
8.1.250.0070.00728.09
8.1.240.0030.00624.02
8.1.230.0040.00719.10
8.1.220.0000.00817.74
8.1.210.0040.00418.89
8.1.200.0000.00817.22
8.1.190.0000.00817.10
8.1.180.0070.00018.10
8.1.170.0060.00318.50
8.1.160.0090.00418.15
8.1.150.0060.00718.12
8.1.140.0050.00817.59
8.1.130.0060.00618.23
8.1.120.0080.00517.49
8.1.110.0080.00617.47
8.1.100.0070.00517.47
8.1.90.0080.00517.43
8.1.80.0090.00317.48
8.1.70.0090.00417.29
8.1.60.0100.00317.47
8.1.50.0110.00517.37
8.1.40.0080.00617.39
8.1.30.0110.00217.41
8.1.20.0080.00617.44
8.1.10.0080.00817.29
8.1.00.0090.00517.26
8.0.300.0040.00419.86
8.0.290.0030.00616.58
8.0.280.0110.00217.92
8.0.270.0100.00418.05
8.0.260.0070.00517.37
8.0.250.0090.00317.21
8.0.240.0050.00717.21
8.0.230.0110.00217.23
8.0.220.0080.00417.16
8.0.210.0110.00217.18
8.0.200.0090.00417.04
8.0.190.0070.00517.00
8.0.180.0080.00616.93
8.0.170.0070.00816.82
8.0.160.0080.00616.83
8.0.150.0070.00716.81
8.0.140.0080.00516.94
8.0.130.0090.00415.69
8.0.120.0100.00316.87
8.0.110.0060.00716.88
8.0.100.0070.00616.86
8.0.90.0090.00416.85
8.0.80.0120.00316.97
8.0.70.0100.00316.92
8.0.60.0090.00417.01
8.0.50.0070.00616.99
8.0.30.0100.00716.84
8.0.20.0070.01016.92
8.0.10.0090.00816.98
8.0.00.0100.00917.02
7.4.330.0090.00016.58
7.4.320.0070.00617.03
7.4.300.0050.00616.84
7.4.290.0040.00716.82
7.4.280.0050.00916.76
7.4.270.0070.00516.79
7.4.260.0110.00316.77
7.4.250.0080.00516.80
7.4.240.0070.00516.76
7.4.230.0090.00416.85
7.4.220.0070.00516.79
7.4.210.0050.01116.55
7.4.200.0060.00616.61
7.4.190.0150.00016.84
7.4.180.0090.00417.09
7.4.160.0100.00716.63
7.4.150.0100.00816.57
7.4.140.0110.00716.87
7.4.130.0070.01116.61
7.4.120.0100.00716.56
7.4.110.0100.00916.56
7.4.100.0120.00816.57
7.4.90.0110.01016.54
7.4.80.0100.01016.79
7.4.70.0110.00816.63
7.4.60.0120.00816.63
7.4.50.0100.00916.50
7.4.40.0120.00816.50
7.4.30.0120.00816.57
7.4.20.0110.00816.54
7.4.10.0110.00816.41
7.4.00.0100.00816.31
7.3.330.0080.00515.57
7.3.320.0060.00615.63
7.3.310.0100.00416.64
7.3.300.0060.00716.70
7.3.290.0110.00316.70
7.3.280.0100.00716.42
7.3.270.0100.00816.39
7.3.260.0070.00916.59
7.3.250.0090.00916.54
7.3.240.0080.00816.52
7.3.230.0110.00916.50
7.3.220.0110.00916.42
7.3.210.0120.00716.38
7.3.200.0110.00716.56
7.3.190.0130.00616.55
7.3.180.0120.00816.53
7.3.170.0110.00916.52
7.3.160.0110.00816.50
7.3.150.0120.00816.51
7.3.140.0110.00916.49
7.3.130.0120.00816.30
7.3.120.0110.00916.25
7.3.110.0110.00816.14
7.3.100.0100.00815.88
7.3.90.0100.00915.78
7.3.80.0090.00915.61
7.3.70.0110.00715.59
7.3.60.0110.00715.60
7.3.50.0100.00715.57
7.3.40.0110.00815.56
7.3.30.0100.00815.49
7.3.20.0180.00715.83
7.3.10.0220.00715.78
7.3.00.0230.00815.77
7.2.340.0160.00916.50
7.2.330.0130.01116.41
7.2.320.0130.00916.58
7.2.310.0130.01116.62
7.2.300.0130.01016.58
7.2.290.0140.00916.53
7.2.280.0130.00916.62
7.2.270.0110.01116.54
7.2.260.0130.00916.42
7.2.250.0140.00816.30
7.2.240.0150.00916.26
7.2.230.0120.00916.02
7.2.220.0110.00915.85
7.2.210.0110.00915.70
7.2.200.0120.00715.72
7.2.190.0100.00915.65
7.2.180.0100.00915.65
7.2.170.0100.00915.63
7.2.160.0110.00815.62
7.2.150.0180.01015.98
7.2.140.0200.00915.96
7.2.130.0210.00715.94
7.2.120.0210.00815.93
7.2.110.0200.00815.95
7.2.100.0230.00815.93
7.2.90.0210.00815.91
7.2.80.0210.00815.93
7.2.70.0220.00915.93
7.2.60.0220.00815.98
7.2.50.0280.00815.99
7.2.40.0250.00816.04
7.2.30.0250.00816.01
7.2.20.0260.00816.02
7.2.10.0210.00916.03
7.2.00.0240.00916.00
7.1.330.0160.00915.49
7.1.320.0190.00915.08
7.1.310.0160.00815.04
7.1.300.0150.00814.95
7.1.290.0160.00815.01
7.1.280.0150.00815.04
7.1.270.0160.00714.99
7.1.260.0150.00914.96
7.1.250.0210.00714.88
7.1.240.0230.00714.86
7.1.230.0270.00914.85
7.1.220.0260.00914.89
7.1.210.0230.00814.87
7.1.200.0230.00814.89
7.1.190.0240.00814.92
7.1.180.0210.00914.91
7.1.170.0290.00814.88
7.1.160.0250.00814.95
7.1.150.0270.00814.96
7.1.140.0280.00814.95
7.1.130.0250.00814.93
7.1.120.0250.00814.94
7.1.110.0230.00914.95
7.1.100.0250.00815.00
7.1.90.0260.00814.98
7.1.80.0240.00714.99
7.1.70.0210.00814.92
7.1.60.0260.00815.58
7.1.50.0210.00915.59
7.1.40.0250.00715.54
7.1.30.0200.00815.55
7.1.20.0220.00815.56
7.1.10.0210.00714.92
7.1.00.0250.00814.92
7.0.330.0250.00914.57
7.0.320.0180.00715.38
7.0.310.0170.00815.39
7.0.300.0190.00815.39
7.0.290.0170.00715.34
7.0.280.0140.00915.33
7.0.270.0160.00715.38
7.0.260.0170.00815.43
7.0.250.0180.00815.44
7.0.240.0180.00815.44
7.0.230.0170.00815.45
7.0.220.0200.00915.44
7.0.210.0160.00915.42
7.0.200.0150.00915.43
7.0.190.0170.00715.45
7.0.180.0160.00715.42
7.0.170.0160.00815.45
7.0.160.0150.00915.40
7.0.150.0190.00715.36
7.0.140.0170.00815.44
7.0.130.0180.00815.43
7.0.120.0160.00915.42
7.0.110.0160.00815.41
7.0.100.0180.00815.41
7.0.90.0160.00815.42
7.0.80.0160.00715.41
7.0.70.0190.01015.45
7.0.60.0200.00915.35
7.0.50.0180.00815.34
7.0.40.0180.00915.34
7.0.30.0170.00915.34
7.0.20.0170.00815.33
7.0.10.0160.00715.33
7.0.00.0170.00815.31
5.6.400.0180.00815.03
5.6.390.0130.01015.02
5.6.380.0130.00914.87
5.6.370.0150.01015.82
5.6.360.0140.01115.85
5.6.350.0150.01015.76
5.6.340.0140.01015.85
5.6.330.0160.01015.81
5.6.320.0140.01115.87
5.6.310.0160.01015.84
5.6.300.0160.01015.82
5.6.290.0160.01015.86
5.6.280.0170.00915.81
5.6.270.0170.00815.82
5.6.260.0150.01015.88
5.6.250.0160.01115.82
5.6.240.0150.01015.85
5.6.230.0150.01015.88
5.6.220.0150.01115.88
5.6.210.0160.01015.85
5.6.200.0140.01115.85
5.6.190.0160.01015.88
5.6.180.0160.01115.83
5.6.170.0170.01015.86
5.6.160.0170.01015.85
5.6.150.0170.01015.83
5.6.140.0160.01015.84
5.6.130.0180.00915.85
5.6.120.0170.00915.86
5.6.110.0160.01115.83
5.6.100.0170.01115.88
5.6.90.0160.01115.82
5.6.80.0140.01115.76
5.6.70.0160.00915.84
5.6.60.0150.01015.79
5.6.50.0160.00915.83
5.6.40.0150.01015.78
5.6.30.0160.01015.79
5.6.20.0150.01015.79
5.6.10.0160.01015.78
5.6.00.0160.01015.80
5.5.380.0100.00217.62

preferences:
29.78 ms | 403 KiB | 5 Q