3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar(callable $fn) { echo "It passed a callable check\n"; @$fn(); } class foo { protected $a; function bar() { $this->a; echo "oh dear lord, this is an instance function"; } } $foo = new foo; foo::bar(); @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.0150.00618.56
8.3.50.0070.01416.35
8.3.40.0180.00318.67
8.3.30.0100.01018.84
8.3.20.0070.01020.29
8.3.10.0020.00523.66
8.3.00.0040.00422.34
8.2.180.0090.00616.63
8.2.170.0110.00422.96
8.2.160.0100.00720.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00017.50
8.2.110.0030.00620.47
8.2.100.0000.01117.87
8.2.90.0050.00318.00
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00917.88
8.2.50.0050.00518.07
8.2.40.0060.00321.01
8.2.30.0050.00519.71
8.2.20.0050.00217.74
8.2.10.0050.00317.96
8.2.00.0040.00418.04
8.1.280.0070.00725.92
8.1.270.0060.00320.26
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.24
8.1.230.0040.00720.86
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0080.00317.23
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0030.00722.01
8.1.150.0000.00718.71
8.1.140.0000.00817.35
8.1.130.0000.00817.63
8.1.120.0000.00817.30
8.1.110.0050.00317.38
8.1.100.0050.00217.41
8.1.90.0050.00317.30
8.1.80.0070.00017.32
8.1.70.0040.00417.38
8.1.60.0030.00517.51
8.1.50.0000.00817.52
8.1.40.0000.00717.51
8.1.30.0040.00717.60
8.1.20.0050.00217.60
8.1.10.0030.00517.59
8.1.00.0030.00617.57
8.0.300.0040.00420.09
8.0.290.0000.00716.75
8.0.280.0030.00318.41
8.0.270.0030.00317.25
8.0.260.0000.00817.11
8.0.250.0040.00417.00
8.0.240.0050.00216.90
8.0.230.0030.00316.95
8.0.220.0000.00716.86
8.0.210.0050.00316.87
8.0.200.0030.00316.97
8.0.190.0040.00416.82
8.0.180.0040.00416.92
8.0.170.0000.00716.77
8.0.160.0000.00716.81
8.0.150.0000.00716.85
8.0.140.0000.00716.84
8.0.130.0060.00313.36
8.0.120.0050.00316.91
8.0.110.0050.00316.82
8.0.100.0000.00816.93
8.0.90.0030.00516.77
8.0.80.0110.00816.82
8.0.70.0000.00716.85
8.0.60.0100.00016.92
8.0.50.0080.00016.83
8.0.30.0130.00817.07
8.0.20.0120.00617.40
8.0.10.0040.00416.97
8.0.00.0080.00916.63
7.4.330.0050.00015.09
7.4.320.0030.00316.44
7.4.300.0060.00016.46
7.4.290.0080.00316.61
7.4.280.0000.00816.63
7.4.270.0030.00316.52
7.4.260.0070.00016.43
7.4.250.0070.00016.57
7.4.240.0020.00516.55
7.4.230.0070.00016.62
7.4.220.0070.01416.70
7.4.210.0090.00916.52
7.4.200.0070.00016.49
7.4.160.0120.00316.48
7.4.150.0130.00317.40
7.4.140.0110.00817.86
7.4.130.0080.01016.57
7.4.120.0100.00816.60
7.4.110.0080.00816.54
7.4.100.0030.01416.50
7.4.90.0130.00316.43
7.4.80.0070.01119.39
7.4.70.0030.01516.43
7.4.60.0090.00616.54
7.4.50.0060.00316.30
7.4.40.0130.01016.45
7.4.30.0130.01016.37
7.4.00.0090.00615.21
7.3.330.0000.00513.36
7.3.320.0050.00013.40
7.3.310.0000.00816.35
7.3.300.0000.00716.28
7.3.290.0070.01116.35
7.3.280.0070.00816.36
7.3.270.0110.00717.40
7.3.260.0070.01016.37
7.3.250.0100.00716.42
7.3.240.0070.01016.32
7.3.230.0090.01216.39
7.3.210.0120.00616.55
7.3.200.0070.01119.39
7.3.190.0120.00616.42
7.3.180.0090.00616.40
7.3.170.0090.01216.42
7.3.160.0170.00616.29
7.2.330.0070.01116.73
7.2.320.0190.00616.71
7.2.310.0030.01316.51
7.2.300.0070.01116.69
7.2.290.0060.01616.44
7.2.60.0070.00716.72
7.2.00.0000.01019.47
7.1.200.0000.01215.32
7.1.100.0070.00718.17
7.1.70.0000.00816.82
7.1.60.0060.01820.03
7.1.50.0150.00616.51
7.1.00.0070.07322.48
7.0.200.0140.00714.97
7.0.60.0030.07719.85
7.0.50.0100.05017.88
7.0.40.0030.09320.04
7.0.30.0370.08320.10
7.0.20.0300.07020.30
7.0.10.0170.04720.07
7.0.00.0030.07320.20
5.6.280.0000.03321.05
5.6.210.0100.07020.51
5.6.200.0030.08318.16
5.6.190.0100.04020.61
5.6.180.0330.07720.39
5.6.170.0100.04720.51
5.6.160.0230.07020.57
5.6.150.0100.06018.17
5.6.140.0000.05318.14
5.6.130.0070.08018.18
5.6.120.0100.07721.04
5.6.110.0200.07021.00
5.6.100.0030.07020.99
5.6.90.0130.07721.13
5.6.80.0030.08320.41
5.6.70.4230.03720.36
5.5.350.0070.07720.43
5.5.340.0100.07318.06
5.5.330.0070.04020.38
5.5.320.0230.04720.31
5.5.310.0400.07720.29
5.5.300.0030.08317.95
5.5.290.0030.05018.03
5.5.280.0030.06020.87
5.5.270.0030.04020.79
5.5.260.0070.08320.87
5.5.250.0130.08020.61
5.5.240.0000.05020.16
5.4.450.0900.05019.55
5.4.440.0800.05719.35
5.4.430.0770.05719.20
5.4.420.0830.05319.34
5.4.410.0800.05719.48
5.4.400.0830.05019.22
5.4.390.0800.05719.06
5.4.380.0930.04719.01
5.4.370.0870.04719.05
5.4.360.0900.04718.87
5.4.350.0830.06319.16
5.4.340.0930.06018.84
5.4.320.0900.05018.98
5.4.310.0800.05019.16
5.4.300.0930.04019.14
5.4.290.0730.05719.15
5.4.280.0830.06019.30
5.4.270.0830.05019.01
5.4.260.0830.05018.84
5.4.250.0870.04719.15
5.4.240.0870.05019.05
5.4.230.0930.04719.25
5.4.220.0800.05719.14
5.4.210.0900.04719.13
5.4.200.0870.07316.78
5.4.190.0900.05019.16
5.4.180.0830.05319.05
5.4.170.0870.06018.88
5.4.160.0870.05019.16
5.4.150.0870.04719.01
5.4.140.0870.05016.64
5.4.130.0800.05016.60
5.4.120.0700.05316.38
5.4.110.0830.04716.79
5.4.100.1000.06716.58
5.4.90.0730.06716.55
5.4.80.1070.05316.80
5.4.70.0800.05316.53
5.4.60.0030.03316.49
5.4.50.0070.07316.53
5.4.40.0070.03016.35
5.4.30.0170.03716.48
5.4.20.0270.05316.30

preferences:
55.58 ms | 400 KiB | 5 Q