3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): ?callable { return function() {}; } function bar(): ?callable { return 'strpos'; } function baz(): ?callable { return 'baz'; } function qux(): ?callable { return array(new SplFixedArray(), 'fromArray'); } function quux(): ?callable { return array('SplFixedArray', 'fromArray'); } function corge(): ?callable { return 'SplFixedArray::fromArray'; } function grault(): ?callable { return null; } foo(); bar(); baz(); qux(); quux(); corge(); grault();

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.0120.00916.50
8.3.50.0100.00718.00
8.3.40.0100.00718.68
8.3.30.0090.00918.70
8.3.20.0000.00721.90
8.3.10.0000.00721.81
8.3.00.0080.00019.43
8.2.180.0150.00618.29
8.2.170.0110.01118.84
8.2.160.0060.00922.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.19
8.2.110.0030.00619.28
8.2.100.0110.00017.91
8.2.90.0070.00019.22
8.2.80.0050.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00417.92
8.2.50.0000.00818.10
8.2.40.0040.00420.60
8.2.30.0030.00519.50
8.2.20.0040.00418.10
8.2.10.0000.00818.04
8.2.00.0040.00417.94
8.1.280.0120.00325.92
8.1.270.0040.00420.46
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.82
8.1.230.0090.00317.77
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00517.35
8.1.190.0070.00017.23
8.1.180.0080.00018.10
8.1.170.0040.00418.91
8.1.160.0000.00818.77
8.1.150.0040.00418.84
8.1.140.0040.00417.64
8.1.130.0070.00018.96
8.1.120.0000.00717.27
8.1.110.0050.00317.41
8.1.100.0000.00817.38
8.1.90.0000.00717.44
8.1.80.0030.00717.33
8.1.70.0000.00717.42
8.1.60.0030.00517.41
8.1.50.0040.00417.47
8.1.40.0030.01017.52
8.1.30.0040.00417.64
8.1.20.0050.00317.67
8.1.10.0000.00817.38
8.1.00.0040.00717.42
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0050.00318.50
8.0.270.0000.00717.25
8.0.260.0030.00319.05
8.0.250.0000.00916.91
8.0.240.0000.00717.02
8.0.230.0060.00316.90
8.0.220.0080.00016.85
8.0.210.0060.00016.97
8.0.200.0040.00417.01
8.0.190.0030.00417.03
8.0.180.0050.00216.96
8.0.170.0030.00616.97
8.0.160.0030.00316.86
8.0.150.0050.00216.92
8.0.140.0000.00816.92
8.0.130.0000.00613.26
8.0.120.0000.00816.86
8.0.110.0050.00316.93
8.0.100.0000.00716.88
8.0.90.0000.00816.95
8.0.80.0030.01216.94
8.0.70.0050.00217.06
8.0.60.0000.00716.84
8.0.50.0030.00516.74
8.0.30.0120.00817.16
8.0.20.0100.01017.40
8.0.10.0040.00417.05
8.0.00.0080.01116.74
7.4.330.0020.00215.55
7.4.320.0000.00616.34
7.4.300.0030.00316.58
7.4.290.0080.00216.51
7.4.280.0000.00716.48
7.4.270.0030.00316.48
7.4.260.0040.00416.56
7.4.250.0020.00516.52
7.4.240.0040.00416.46
7.4.230.0000.00716.57
7.4.220.0000.00816.50
7.4.210.0130.00416.52
7.4.200.0040.00416.63
7.4.160.0090.00616.41
7.4.140.0110.00717.86
7.4.130.0120.00616.50
7.4.120.0120.00716.41
7.4.110.0060.01016.61
7.4.100.0060.01116.43
7.4.90.0160.00616.34
7.4.80.0090.01317.68
7.4.70.0120.01116.40
7.4.60.0050.01316.43
7.4.50.0090.00916.29
7.4.40.0100.00916.43
7.4.30.0110.00916.37
7.4.20.0080.01216.42
7.4.10.0090.00916.41
7.4.00.0100.00916.20
7.3.330.0030.00313.16
7.3.320.0030.00313.30
7.3.310.0070.00016.14
7.3.300.0030.00316.35
7.3.290.0070.00016.30
7.3.280.0060.01016.27
7.3.260.0070.01216.32
7.3.240.0070.01416.36
7.3.230.0090.00616.38
7.3.210.0160.00016.43
7.3.200.0140.00316.31
7.3.190.0030.01316.32
7.3.180.0060.00916.36
7.3.170.0080.01116.32
7.3.160.0130.00916.36
7.3.150.0090.01016.29
7.3.140.0090.01116.26
7.3.130.0080.01116.28
7.3.120.0080.01015.93
7.3.110.0100.00815.88
7.3.100.0070.00915.33
7.3.90.0080.00915.37
7.3.80.0090.01015.26
7.3.70.0090.00915.17
7.3.60.0080.00915.20
7.3.50.0100.00815.09
7.3.40.0100.00615.18
7.3.30.0080.00815.08
7.3.20.0080.00815.66
7.3.10.0090.00915.66
7.3.00.0100.00715.74
7.2.330.0060.01216.46
7.2.320.0070.00916.68
7.2.310.0090.00816.35
7.2.300.0110.00716.48
7.2.290.0120.00816.40
7.2.280.0120.00616.35
7.2.270.0110.00616.41
7.2.260.0080.01216.48
7.2.250.0080.00916.56
7.2.240.0080.01015.87
7.2.230.0090.00815.52
7.2.220.0090.01015.49
7.2.210.0080.01215.44
7.2.200.0070.01115.30
7.2.190.0090.00915.31
7.2.180.0100.00815.24
7.2.170.0090.01015.22
7.2.160.0080.00915.24
7.2.150.0080.01015.81
7.2.140.0160.00915.74
7.2.130.0100.00915.91
7.2.120.0100.00815.83
7.2.110.0100.00715.85
7.2.100.0110.01015.88
7.2.90.0110.00815.90
7.2.80.0110.01015.85
7.2.70.0110.01015.84
7.2.60.0080.01015.93
7.2.50.0170.00915.92
7.2.40.0230.00916.17
7.2.30.0140.00916.13
7.2.20.0140.00916.06
7.2.10.0140.01016.10
7.2.00.0180.00916.11
7.1.330.0140.01015.22
7.1.320.0120.01114.71
7.1.310.0120.01014.88
7.1.300.0120.01014.71
7.1.290.0140.01014.68
7.1.280.0130.00914.71
7.1.270.0100.00914.74
7.1.260.0090.00814.77
7.1.250.0170.00614.74
7.1.240.0140.00714.52
7.1.230.0140.00814.56
7.1.220.0150.00614.64
7.1.210.0150.00814.57
7.1.200.0140.01014.67
7.1.190.0140.00814.65
7.1.180.0140.00814.61
7.1.170.0130.00914.54
7.1.160.0190.01014.71
7.1.150.0170.00914.78
7.1.140.0150.00814.88
7.1.130.0160.00714.86
7.1.120.0180.00914.81
7.1.110.0160.01014.69
7.1.100.0160.00914.76
7.1.90.0210.00914.76
7.1.80.0200.00914.73
7.1.70.0170.00914.72
7.1.60.0240.00915.78
7.1.50.0170.00915.78
7.1.40.0210.00915.76
7.1.30.0220.00915.72
7.1.20.0180.00915.71
7.1.10.0150.00914.60
7.1.00.0160.00714.64
7.0.330.0190.00714.11
7.0.320.0160.00814.18
7.0.310.0160.00814.18
7.0.300.0140.00814.20
7.0.290.0200.00914.39
7.0.280.0150.00814.39
7.0.270.0180.00814.50
7.0.260.0190.00714.39
7.0.250.0210.00914.31
7.0.240.0200.00714.26
7.0.230.0210.00814.39
7.0.220.0250.00914.29
7.0.210.0310.00914.29
7.0.200.0250.00614.23
7.0.190.0250.00814.26
7.0.180.0380.00714.28
7.0.170.0230.00614.25
7.0.160.0230.00914.19
7.0.150.0140.00914.20
7.0.140.0180.00714.21
7.0.130.0240.00814.26
7.0.120.0260.01114.29
7.0.110.0240.00914.24
7.0.100.0240.00713.97
7.0.90.0250.00914.24
7.0.80.0150.00914.23
7.0.70.0180.01014.31
7.0.60.0130.00814.22
7.0.50.0190.00814.32
7.0.40.0190.00814.32
7.0.30.0170.00814.29
7.0.20.0200.00914.16
7.0.10.0170.00914.29
7.0.00.0180.01014.27
5.6.400.0110.01014.27
5.6.390.0120.00914.38
5.6.380.0120.00814.35
5.6.370.0150.01014.57
5.6.360.0140.00914.63
5.6.350.0120.01114.57
5.6.340.0140.00814.56
5.6.330.0130.00914.63
5.6.320.0140.01014.53
5.6.310.0130.01114.61
5.6.300.0120.01615.04
5.6.290.0140.01415.06
5.6.280.0140.01615.11
5.6.270.0160.01415.12
5.6.260.0170.01315.20
5.6.250.0140.01415.10
5.6.240.0140.01615.15
5.6.230.0150.01415.16
5.6.220.0150.01315.20
5.6.210.0160.01115.09
5.6.200.0150.01315.09
5.6.190.0130.01315.04
5.6.180.0140.01415.12
5.6.170.0130.01615.08
5.6.160.0160.01215.20
5.6.150.0130.01515.14
5.6.140.0150.01615.18
5.6.130.0150.01615.11
5.6.120.0150.01515.19
5.6.110.0140.01315.08
5.6.100.0150.01415.05
5.6.90.0160.01315.13
5.6.80.0130.01514.96
5.6.70.0140.01214.99
5.6.60.0160.01215.02
5.6.50.0160.01315.00
5.6.40.0150.01314.97
5.6.30.0150.01214.99
5.6.20.0160.01215.00
5.6.10.0130.01415.02
5.6.00.0140.01514.92

preferences:
69.58 ms | 401 KiB | 5 Q