3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wtf(array $arrayUnderTest) { echo is_callable($test) ? 'This is a callable' : 'This is not a callable'; echo "\n"; echo is_array($test) ? 'This is an array' : 'This is not an array'; $test(); } class x { function foo() { print "\nfoo"; } } $x = new x(); $test = array($x, "foo"); wtf($test);

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.00318.43
8.3.50.0080.01021.14
8.3.40.0080.00818.80
8.3.30.0070.00718.78
8.3.20.0030.00520.16
8.3.10.0040.00423.36
8.3.00.0080.00022.36
8.2.180.0110.00416.63
8.2.170.0070.00722.96
8.2.160.0110.00420.33
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0100.00019.31
8.2.100.0080.00417.75
8.2.90.0040.00419.20
8.2.80.0060.00317.97
8.2.70.0040.00417.74
8.2.60.0000.00817.80
8.2.50.0030.00918.07
8.2.40.0030.00621.05
8.2.30.0000.00718.08
8.2.20.0000.00717.70
8.2.10.0000.00718.05
8.2.00.0070.00018.11
8.1.280.0160.00625.92
8.1.270.0080.00020.38
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00623.98
8.1.230.0090.00317.48
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.34
8.1.190.0000.00917.35
8.1.180.0060.00318.10
8.1.170.0000.00818.60
8.1.160.0040.00421.90
8.1.150.0040.00418.92
8.1.140.0080.00017.52
8.1.130.0040.00417.81
8.1.120.0000.00717.38
8.1.110.0040.00417.38
8.1.100.0030.00517.38
8.1.90.0020.00517.48
8.1.80.0050.00317.38
8.1.70.0030.00317.45
8.1.60.0090.00017.67
8.1.50.0040.00417.43
8.1.40.0030.00517.52
8.1.30.0060.00317.56
8.1.20.0040.00417.60
8.1.10.0000.00817.64
8.1.00.0000.00817.54
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0000.00717.20
8.0.260.0000.00617.34
8.0.250.0070.00016.93
8.0.240.0030.00317.04
8.0.230.0000.00716.95
8.0.220.0070.00016.93
8.0.210.0040.00417.00
8.0.200.0000.00716.90
8.0.190.0070.00017.07
8.0.180.0070.00016.98
8.0.170.0050.00216.99
8.0.160.0000.00716.93
8.0.150.0050.00216.86
8.0.140.0040.00716.96
8.0.130.0060.00013.50
8.0.120.0030.00616.98
8.0.110.0040.00416.91
8.0.100.0050.00316.96
8.0.90.0040.00416.94
8.0.80.0030.01616.86
8.0.70.0080.00016.84
8.0.60.0070.00016.84
8.0.50.0000.00816.83
8.0.30.0090.01117.16
8.0.20.0110.00817.43
8.0.10.0030.00517.10
8.0.00.0120.00616.88
7.4.330.0000.00515.08
7.4.320.0030.00316.48
7.4.300.0000.00616.59
7.4.290.0030.00316.48
7.4.280.0050.00316.57
7.4.270.0050.00216.64
7.4.260.0040.00316.49
7.4.250.0070.00016.44
7.4.240.0080.00016.58
7.4.230.0000.00816.40
7.4.220.0130.01516.55
7.4.210.0060.01016.58
7.4.200.0000.00716.63
7.4.160.0030.01016.80
7.4.150.0140.00717.40
7.4.140.0120.00917.86
7.4.130.0080.01016.57
7.4.120.0030.01616.48
7.4.110.0140.00316.77
7.4.100.0120.00816.48
7.4.90.0070.01016.61
7.4.80.0100.01319.39
7.4.70.0090.00816.62
7.4.60.0100.00716.54
7.4.50.0020.00216.65
7.4.40.0060.01016.59
7.4.30.0070.01016.25
7.4.00.0060.01015.05
7.3.330.0000.00513.38
7.3.320.0060.00013.37
7.3.310.0000.00716.42
7.3.300.0030.00316.18
7.3.290.0040.00416.36
7.3.280.0080.00916.43
7.3.270.0080.00817.40
7.3.260.0150.00416.48
7.3.250.0110.00816.49
7.3.240.0100.01316.54
7.3.230.0100.00716.39
7.3.210.0110.00616.57
7.3.200.0190.00019.39
7.3.190.0040.01216.43
7.3.180.0070.01016.55
7.3.170.0030.01316.37
7.3.160.0110.00816.42
7.3.120.0100.01014.79
7.3.110.0100.00714.86
7.3.100.0030.01414.42
7.3.90.0030.01314.52
7.3.80.0000.01714.62
7.3.70.0040.00814.86
7.3.60.0000.00914.91
7.3.50.0090.00614.65
7.3.40.0080.00414.65
7.3.30.0070.00714.41
7.3.20.0070.00316.80
7.3.10.0030.01416.42
7.3.00.0060.00616.40
7.2.330.0040.01516.71
7.2.320.0160.01416.80
7.2.310.0080.01016.89
7.2.300.0030.01816.82
7.2.290.0130.01116.81
7.2.250.0060.01315.23
7.2.240.0070.01014.91
7.2.230.0000.01714.97
7.2.220.0090.00615.00
7.2.210.0060.00914.86
7.2.200.0050.00514.89
7.2.190.0030.01214.79
7.2.180.0030.01214.82
7.2.170.0030.00614.97
7.2.60.0000.01316.89
7.2.00.0060.01319.09
7.1.330.0040.01215.73
7.1.320.0070.00715.75
7.1.310.0090.00615.75
7.1.300.0090.00615.80
7.1.290.0000.01415.78
7.1.280.0090.00615.57
7.1.270.0070.00415.73
7.1.260.0080.00815.57
7.1.200.0060.00615.60
7.1.100.0060.00617.98
7.1.70.0000.01117.23
7.1.60.0200.00320.03
7.1.50.0140.00716.99
7.1.00.0100.07022.33
7.0.200.0260.00314.63
7.0.60.0070.04020.05
7.0.50.0030.04017.87
7.0.40.0070.04020.04
7.0.30.0470.04320.16
7.0.20.0330.07320.08
7.0.10.0100.08020.12
7.0.00.0030.06720.30
5.6.280.0070.07020.99
5.6.210.0130.08020.51
5.6.200.0170.06318.24
5.6.190.0070.09020.58
5.6.180.0270.06720.47
5.6.170.0200.03720.76
5.6.160.0130.07720.49
5.6.150.0070.06718.18
5.6.140.0070.07718.21
5.6.130.0100.04318.27
5.6.120.0100.08321.12
5.6.110.0130.06321.14
5.6.100.0200.07021.01
5.6.90.0170.07021.01
5.6.80.0070.06020.43
5.6.70.3300.03020.41
5.5.350.0200.03020.41
5.5.340.0100.07717.96
5.5.330.0100.05320.21
5.5.320.0430.06720.41
5.5.310.0370.04320.23
5.5.300.0130.07017.95
5.5.290.0070.08018.08
5.5.280.0100.04320.96
5.5.270.0130.08020.77
5.5.260.0100.05720.76
5.5.250.0070.08020.66
5.5.240.0270.07020.26
5.4.450.0900.07019.57
5.4.440.0770.07319.29
5.4.430.1070.04719.58
5.4.420.1200.05019.15
5.4.410.0670.06319.29
5.4.400.0670.05718.84
5.4.390.0730.06019.12
5.4.380.0830.05319.07
5.4.370.0800.05318.84
5.4.360.0900.05718.83
5.4.350.0830.06319.25
5.4.340.0830.06319.12
5.4.320.0770.06719.11
5.4.310.0800.05719.25
5.4.300.0800.05719.37
5.4.290.0630.06318.95
5.4.280.0800.05319.02
5.4.270.0870.05719.09
5.4.260.0800.07019.27
5.4.250.0770.05319.14
5.4.240.0770.05019.30
5.4.230.0900.05318.84
5.4.220.0830.05019.09
5.4.210.0770.05319.26
5.4.200.0900.06716.90
5.4.190.0830.05019.00
5.4.180.0900.05019.11
5.4.170.0870.06019.12
5.4.160.0770.07318.99
5.4.150.0830.06718.99
5.4.140.0830.05016.60
5.4.130.0930.05316.39
5.4.120.0770.05316.37
5.4.110.0800.05016.37
5.4.100.0800.04316.48
5.4.90.0770.06016.48
5.4.80.0630.05016.56
5.4.70.0730.05716.57
5.4.60.0030.03016.52
5.4.50.0000.08316.56
5.4.40.0230.02716.16
5.4.30.0330.03016.42
5.4.20.0130.04016.52

preferences:
42.17 ms | 401 KiB | 5 Q