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; @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.0100.01018.30
8.3.50.0090.00916.45
8.3.40.0120.00318.72
8.3.30.0090.00918.78
8.3.20.0000.00720.16
8.3.10.0000.00723.49
8.3.00.0050.00322.39
8.2.180.0070.01118.29
8.2.170.0040.01122.96
8.2.160.0110.00622.12
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00617.63
8.2.110.0110.00020.46
8.2.100.0090.00317.75
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0030.00518.04
8.2.50.0030.00618.07
8.2.40.0000.00821.03
8.2.30.0030.00619.95
8.2.20.0000.00817.73
8.2.10.0060.00317.94
8.2.00.0020.00518.11
8.1.280.0110.00725.92
8.1.270.0150.00420.38
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00324.02
8.1.230.0120.00017.42
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0080.00017.00
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0030.00722.02
8.1.150.0070.00018.86
8.1.140.0000.00917.45
8.1.130.0030.00317.66
8.1.120.0070.00017.46
8.1.110.0050.00217.43
8.1.100.0030.00517.47
8.1.90.0000.00717.38
8.1.80.0030.00417.52
8.1.70.0000.00717.29
8.1.60.0030.00617.63
8.1.50.0030.00617.55
8.1.40.0040.00417.58
8.1.30.0000.00917.66
8.1.20.0060.00317.73
8.1.10.0080.00017.57
8.1.00.0080.00017.41
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0000.00818.52
8.0.270.0000.00717.26
8.0.260.0000.00717.37
8.0.250.0000.00716.99
8.0.240.0060.00316.91
8.0.230.0050.00216.86
8.0.220.0040.00417.00
8.0.210.0050.00316.93
8.0.200.0030.00316.98
8.0.190.0040.00416.93
8.0.180.0060.00316.98
8.0.170.0000.00716.98
8.0.160.0000.00817.05
8.0.150.0070.00016.94
8.0.140.0000.00716.94
8.0.130.0090.00013.26
8.0.120.0030.00516.75
8.0.110.0000.00716.98
8.0.100.0040.00416.93
8.0.90.0040.00416.96
8.0.80.0090.00916.87
8.0.70.0080.00016.84
8.0.60.0040.00416.92
8.0.50.0000.00816.87
8.0.30.0100.00817.00
8.0.20.0090.01017.40
8.0.10.0040.00417.12
8.0.00.0100.00916.99
7.4.330.0030.00315.08
7.4.320.0000.00616.46
7.4.300.0000.00716.50
7.4.290.0040.00716.60
7.4.280.0080.00016.56
7.4.270.0000.00716.61
7.4.260.0070.00016.50
7.4.250.0000.00716.48
7.4.240.0020.00616.62
7.4.230.0070.00016.61
7.4.220.0060.00916.61
7.4.210.0060.00916.71
7.4.200.0000.00716.53
7.4.160.0060.01016.48
7.4.150.0150.00417.40
7.4.140.0120.00717.86
7.4.130.0060.01316.53
7.4.120.0090.00816.57
7.4.110.0150.00416.50
7.4.100.0070.01016.59
7.4.90.0000.01716.50
7.4.80.0020.02019.39
7.4.70.0100.00716.63
7.4.60.0060.00916.50
7.4.50.0040.00416.22
7.4.40.0070.01016.44
7.4.30.0170.00016.49
7.4.00.0070.01014.98
7.3.330.0030.00313.23
7.3.320.0050.00013.33
7.3.310.0070.00016.39
7.3.300.0000.00716.24
7.3.290.0130.00516.37
7.3.280.0090.00616.32
7.3.270.0060.01317.40
7.3.260.0100.00716.58
7.3.250.0080.01016.45
7.3.240.0120.00916.32
7.3.230.0060.01416.53
7.3.210.0100.00816.44
7.3.200.0150.00319.39
7.3.190.0060.00916.43
7.3.180.0080.00816.35
7.3.170.0100.01016.61
7.3.160.0130.01016.59
7.3.120.0100.00714.63
7.3.110.0030.01314.89
7.3.100.0080.00614.87
7.3.90.0000.01215.00
7.3.80.0000.01714.85
7.3.70.0090.00614.93
7.3.60.0100.00714.84
7.3.50.0080.00514.89
7.3.40.0060.00614.86
7.3.30.0080.00614.63
7.3.20.0100.00016.45
7.3.10.0000.01416.58
7.3.00.0000.01416.45
7.2.330.0160.00716.50
7.2.320.0090.00916.69
7.2.310.0030.01316.80
7.2.300.0000.02016.47
7.2.290.0130.00616.79
7.2.250.0060.01214.54
7.2.240.0090.00915.17
7.2.230.0030.01015.18
7.2.220.0070.00714.95
7.2.210.0030.01515.07
7.2.200.0070.00715.22
7.2.190.0030.01215.26
7.2.180.0030.00915.18
7.2.170.0040.00915.05
7.2.60.0070.01017.10
7.2.00.0070.00719.17
7.1.330.0100.00315.81
7.1.320.0060.00915.67
7.1.310.0130.00715.59
7.1.300.0070.01015.68
7.1.290.0060.00315.75
7.1.280.0070.01015.64
7.1.270.0070.00715.87
7.1.260.0120.00815.64
7.1.200.0070.00715.76
7.1.100.0060.00317.92
7.1.70.0000.00816.98
7.1.60.0070.01720.03
7.1.50.0090.01216.78
7.1.00.0030.07722.45
7.0.200.0140.00314.97
7.0.60.0100.07019.92
7.0.50.0100.07017.88
7.0.40.0130.07720.04
7.0.30.0430.04320.25
7.0.20.0230.04720.36
7.0.10.0030.07720.15
7.0.00.0070.05720.15
5.6.280.0030.03321.13
5.6.210.0030.04320.56
5.6.200.0130.08018.19
5.6.190.0130.03320.50
5.6.180.0170.04020.67
5.6.170.0400.07020.44
5.6.160.0170.07320.70
5.6.150.0070.08318.21
5.6.140.0030.04318.28
5.6.130.0170.07018.24
5.6.120.0030.05020.97
5.6.110.0130.07021.05
5.6.100.0130.08021.14
5.6.90.0100.08021.10
5.6.80.0100.04320.29
5.5.350.0030.08320.50
5.5.340.0100.03317.99
5.5.330.0070.08020.35
5.5.320.0430.07720.51
5.5.310.0330.07720.19
5.5.300.0030.04018.08
5.5.290.0100.07717.95
5.5.280.0070.03720.78
5.5.270.0070.04720.76
5.5.260.0030.04020.96
5.5.250.0100.06320.47
5.5.240.0200.04720.18
5.4.450.0270.03719.34
5.4.440.0230.08019.64
5.4.430.0270.07319.54
5.4.420.0230.05319.63
5.4.410.0230.04719.27
5.4.400.0270.06319.24
5.4.390.0170.03718.98
5.4.380.0130.04019.23
5.4.370.0130.04018.94
5.4.360.0130.04019.20
5.4.350.0200.03319.23
5.4.340.0100.04319.15
5.4.320.0230.03718.99
5.4.310.0170.03719.22
5.4.300.0170.03719.22
5.4.290.0170.04019.09
5.4.280.0130.04019.06
5.4.270.0170.03719.15
5.4.260.0100.04319.07
5.4.250.0170.03719.08
5.4.240.0200.03319.14
5.4.230.0170.03718.86
5.4.220.0230.03719.14
5.4.210.0200.04318.98
5.4.200.0200.03319.21
5.4.190.0170.04719.21
5.4.180.0170.03719.08
5.4.170.0300.06319.18
5.4.160.0200.05319.14
5.4.150.0270.04718.83
5.4.140.0170.04316.38
5.4.130.0230.05716.39
5.4.120.0230.05316.35
5.4.110.0230.08016.46
5.4.100.0370.06316.43
5.4.90.0230.05716.40
5.4.80.0230.07016.59
5.4.70.0300.03316.60

preferences:
46.26 ms | 400 KiB | 5 Q