3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar(callable $fn) { echo "It passed a callable check\n"; $fn(); } class foo { function bar() { echo "oh dear lord, this is an instance function"; } } $foo = new foo; bar(['foo', 'bar']);

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.0070.01418.43
8.3.50.0310.00721.09
8.3.40.0070.00718.88
8.3.30.0110.00718.68
8.3.20.0000.00720.21
8.3.10.0080.00023.65
8.3.00.0080.00022.57
8.2.180.0150.00618.38
8.2.170.0120.00922.96
8.2.160.0120.00621.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0030.00617.50
8.2.110.0100.00020.33
8.2.100.0080.00417.63
8.2.90.0050.00219.13
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0040.00417.80
8.2.50.0030.00918.07
8.2.40.0000.00821.18
8.2.30.0030.00617.82
8.2.20.0000.00717.60
8.2.10.0050.00218.05
8.2.00.0040.00417.93
8.1.280.0100.00725.92
8.1.270.0040.00420.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0070.00417.42
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0020.00518.10
8.1.170.0040.00418.50
8.1.160.0000.00821.92
8.1.150.0000.00718.78
8.1.140.0080.00017.32
8.1.130.0070.00017.58
8.1.120.0070.00017.47
8.1.110.0040.00417.38
8.1.100.0050.00317.38
8.1.90.0000.00817.43
8.1.80.0000.00717.34
8.1.70.0080.00017.27
8.1.60.0080.00017.56
8.1.50.0040.00417.42
8.1.40.0000.00817.55
8.1.30.0030.00617.61
8.1.20.0000.00817.69
8.1.10.0040.00417.57
8.1.00.0040.00417.53
8.0.300.0000.00718.77
8.0.290.0080.00016.88
8.0.280.0040.00418.29
8.0.270.0070.00017.10
8.0.260.0070.00017.19
8.0.250.0030.00316.89
8.0.240.0080.00016.84
8.0.230.0000.00716.83
8.0.220.0000.00816.91
8.0.210.0030.00316.77
8.0.200.0000.00616.82
8.0.190.0030.00516.97
8.0.180.0050.00316.90
8.0.170.0030.00616.94
8.0.160.0000.00716.91
8.0.150.0000.00716.67
8.0.140.0030.00416.83
8.0.130.0030.00313.24
8.0.120.0040.00416.79
8.0.110.0040.00416.75
8.0.100.0040.00416.77
8.0.90.0000.00816.95
8.0.80.0120.00416.84
8.0.70.0000.00816.75
8.0.60.0000.00716.71
8.0.50.0000.00816.95
8.0.30.0110.01017.17
8.0.20.0090.00917.40
8.0.10.0000.00717.06
8.0.00.0050.01616.78
7.4.330.0050.00015.08
7.4.320.0060.00016.60
7.4.300.0000.00716.59
7.4.290.0060.00316.64
7.4.280.0070.00016.52
7.4.270.0000.00716.55
7.4.260.0000.00816.63
7.4.250.0040.00416.54
7.4.240.0040.00416.57
7.4.230.0030.00316.62
7.4.220.0070.01016.63
7.4.210.0130.00716.46
7.4.200.0000.00716.63
7.4.160.0150.00016.58
7.4.150.0120.01217.40
7.4.140.0150.00417.86
7.4.130.0140.00716.49
7.4.120.0110.00616.49
7.4.110.0030.01316.47
7.4.100.0080.00816.50
7.4.90.0110.00716.59
7.4.80.0120.00719.39
7.4.70.0110.00816.52
7.4.60.0090.00616.64
7.4.50.0030.00616.46
7.4.40.0110.00616.51
7.4.30.0070.01116.60
7.4.00.0000.01514.88
7.3.330.0000.00513.23
7.3.320.0050.00013.39
7.3.310.0070.00016.27
7.3.300.0070.00016.34
7.3.290.0080.00816.39
7.3.280.0090.01016.37
7.3.270.0130.00617.40
7.3.260.0140.01016.55
7.3.250.0050.01316.59
7.3.240.0120.00916.65
7.3.230.0100.00916.39
7.3.210.0070.01016.49
7.3.200.0090.01319.39
7.3.190.0100.00716.62
7.3.180.0130.00316.32
7.3.170.0090.00916.38
7.3.160.0130.01016.41
7.3.10.0090.00916.28
7.3.00.0090.00616.45
7.2.330.0130.00316.72
7.2.320.0090.00916.70
7.2.310.0090.00816.61
7.2.300.0140.00716.64
7.2.290.0130.01116.58
7.2.130.0040.01416.62
7.2.120.0090.00616.44
7.2.110.0170.00916.90
7.2.100.0100.01016.27
7.2.90.0260.01116.22
7.2.80.0280.00016.64
7.2.70.0150.00616.55
7.2.60.0090.00616.64
7.2.50.0060.00616.81
7.2.40.0060.01116.20
7.2.30.0080.00416.36
7.2.20.0140.00616.63
7.2.10.0100.00316.28
7.2.00.0050.00817.90
7.1.250.0140.00315.19
7.1.200.0080.00615.35
7.1.100.0000.01017.63
7.1.70.0000.00716.87
7.1.60.0090.01620.03
7.1.50.0070.01416.80
7.1.00.0000.08022.41
7.0.200.0120.00614.97
7.0.60.0230.06320.00
7.0.50.0000.04317.88
7.0.40.0100.04720.07
7.0.30.0500.07020.25
7.0.20.0330.05020.23
7.0.10.0100.04020.24
7.0.00.0100.05720.19
5.6.280.0030.03320.99
5.6.210.0100.05720.48
5.6.200.0070.08018.29
5.6.190.0030.04320.63
5.6.180.0070.04320.64
5.6.170.0270.06020.44
5.6.160.0000.05720.50
5.6.150.0070.08318.25
5.6.140.0070.03718.15
5.6.130.0070.07018.21
5.6.120.0030.04721.00
5.6.110.0070.05720.96
5.6.100.0100.07021.02
5.6.90.0070.08021.11
5.6.80.0070.08020.53
5.5.350.0000.03320.32
5.5.340.0100.08017.96
5.5.330.0130.07020.19
5.5.320.0330.07320.52
5.5.310.0070.05020.34
5.5.300.0070.08018.04
5.5.290.0030.05318.02
5.5.280.0070.07020.78
5.5.270.0030.04020.64
5.5.260.0130.08020.96
5.5.250.0130.06020.69
5.5.240.0170.05320.37
5.4.450.1130.06019.62
5.4.440.0800.07019.20
5.4.430.1230.06319.30
5.4.420.1030.07019.46
5.4.410.0970.06019.04
5.4.400.0970.06018.84
5.4.390.0870.05319.15
5.4.380.0930.05319.28
5.4.370.1000.04319.23
5.4.360.0900.05319.39
5.4.350.0830.05019.12
5.4.340.0800.05318.87
5.4.320.0830.06319.00
5.4.310.0870.05319.29
5.4.300.0830.05019.15
5.4.290.0870.04318.98
5.4.280.0930.04719.30
5.4.270.0770.05319.14
5.4.260.0800.05318.97
5.4.250.0730.05718.98
5.4.240.0970.05319.25
5.4.230.0670.06319.13
5.4.220.0870.07019.25
5.4.210.0800.05319.35
5.4.200.0770.05316.70
5.4.190.0830.05318.88
5.4.180.0800.04719.09
5.4.170.0700.06719.10
5.4.160.1030.07019.07
5.4.150.0830.06318.97
5.4.140.0800.05716.45
5.4.130.1000.04716.39
5.4.120.0970.04316.78
5.4.110.0770.05316.49
5.4.100.0900.05316.43
5.4.90.1170.05316.56
5.4.80.0670.06716.62
5.4.70.0930.06016.48
5.4.60.0030.07716.33
5.4.50.0000.07016.33
5.4.40.0330.06316.53
5.4.30.0370.06016.37
5.4.20.0270.04716.22

preferences:
46.04 ms | 401 KiB | 5 Q