3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wtf(array $arrayUnderTest) { echo is_callable($arrayUnderTest) ? 'This is a callable' : 'This is not a callable'; echo "\n"; echo is_array($arrayUnderTest) ? 'This is an array' : 'This is not an array'; $arrayUnderTest(); } 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.0110.00418.43
8.3.50.0110.00821.12
8.3.40.0110.00718.67
8.3.30.0030.01018.71
8.3.20.0040.00420.13
8.3.10.0000.00823.48
8.3.00.0040.00422.46
8.2.180.0090.00616.63
8.2.170.0000.01422.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.49
8.2.110.0000.01019.31
8.2.100.0060.00617.75
8.2.90.0000.00719.21
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0000.00918.03
8.2.50.0040.00418.07
8.2.40.0060.00321.19
8.2.30.0000.00817.96
8.2.20.0000.00717.57
8.2.10.0080.00018.05
8.2.00.0040.00418.13
8.1.280.0140.00725.92
8.1.270.0080.00020.25
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.92
8.1.230.0080.00417.66
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00617.11
8.1.180.0000.00918.10
8.1.170.0000.00818.58
8.1.160.0070.00022.05
8.1.150.0000.00718.90
8.1.140.0030.00617.45
8.1.130.0070.00017.71
8.1.120.0000.00817.35
8.1.110.0050.00217.36
8.1.100.0080.00017.52
8.1.90.0000.00817.45
8.1.80.0000.00817.48
8.1.70.0070.00017.34
8.1.60.0000.00817.62
8.1.50.0030.00617.54
8.1.40.0050.00217.44
8.1.30.0040.00417.66
8.1.20.0020.00517.56
8.1.10.0040.00417.59
8.1.00.0030.00517.40
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.39
8.0.270.0000.00717.18
8.0.260.0000.00617.26
8.0.250.0030.00416.91
8.0.240.0000.00816.97
8.0.230.0000.00716.94
8.0.220.0000.00716.87
8.0.210.0000.00716.92
8.0.200.0000.00616.80
8.0.190.0030.00316.96
8.0.180.0000.00716.85
8.0.170.0000.00816.82
8.0.160.0040.00316.91
8.0.150.0030.00416.74
8.0.140.0060.00616.81
8.0.130.0000.00613.31
8.0.120.0000.00816.88
8.0.110.0070.00016.89
8.0.100.0000.00716.81
8.0.90.0000.00716.81
8.0.80.0100.01016.83
8.0.70.0040.00416.87
8.0.60.0050.00216.89
8.0.50.0040.00416.93
8.0.30.0110.00917.11
8.0.20.0140.00717.40
8.0.10.0040.00416.89
8.0.00.0090.01116.81
7.4.330.0050.00015.09
7.4.320.0030.00316.50
7.4.300.0000.00616.58
7.4.290.0030.00316.43
7.4.280.0000.00716.46
7.4.270.0000.00616.62
7.4.260.0040.00416.59
7.4.250.0080.00016.47
7.4.240.0030.00416.43
7.4.230.0030.00616.60
7.4.220.0120.00916.41
7.4.210.0090.01016.51
7.4.200.0070.00016.35
7.4.160.0040.01116.20
7.4.150.0090.00917.40
7.4.140.0050.01317.86
7.4.130.0090.01016.43
7.4.120.0070.01016.54
7.4.110.0040.01316.63
7.4.100.0030.01416.34
7.4.90.0070.01416.45
7.4.80.0060.00919.39
7.4.70.0040.01316.58
7.4.60.0040.01216.43
7.4.50.0000.00616.41
7.4.40.0090.00916.51
7.4.30.0070.01716.43
7.4.00.0080.00914.91
7.3.330.0000.00513.23
7.3.320.0000.00513.31
7.3.310.0040.00416.16
7.3.300.0070.00016.38
7.3.290.0000.00616.26
7.3.280.0140.00416.30
7.3.270.0080.00917.40
7.3.260.0130.00416.41
7.3.250.0100.01016.35
7.3.240.0100.01316.60
7.3.230.0150.00416.47
7.3.210.0140.00316.26
7.3.200.0100.01019.39
7.3.190.0100.00616.46
7.3.180.0030.01316.47
7.3.170.0110.00716.45
7.3.160.0130.00716.41
7.3.120.0040.01514.86
7.3.110.0030.00914.70
7.3.100.0060.00614.89
7.3.90.0070.00314.90
7.3.80.0070.00714.74
7.3.70.0090.00314.93
7.3.60.0060.00614.70
7.3.50.0030.01014.93
7.3.40.0030.00614.96
7.3.30.0070.00714.98
7.3.20.0050.00616.62
7.3.10.0040.00916.47
7.3.00.0030.00916.39
7.2.330.0100.00716.71
7.2.320.0090.02316.80
7.2.310.0080.00816.74
7.2.300.0070.01016.50
7.2.290.0120.01216.46
7.2.250.0160.00015.18
7.2.240.0100.01015.07
7.2.230.0030.01314.75
7.2.220.0030.00915.38
7.2.210.0030.01415.01
7.2.200.0060.00614.95
7.2.190.0060.00915.03
7.2.180.0030.01015.16
7.2.170.0070.00715.16
7.2.00.0030.00919.23
7.1.330.0100.00315.89
7.1.320.0040.01115.76
7.1.310.0030.00615.69
7.1.300.0070.00315.94
7.1.290.0030.00615.50
7.1.280.0030.01015.62
7.1.270.0080.00015.63
7.1.260.0030.01315.55
7.1.100.0040.00718.17
7.1.70.0030.00617.21
7.1.60.0060.01620.03
7.1.50.0040.01816.96
7.1.00.0000.08022.51
7.0.200.0380.00314.53
7.0.110.0530.05720.06
7.0.100.0630.08019.94
7.0.90.0070.04019.95
7.0.80.0130.05320.07
7.0.70.0030.07719.95
7.0.60.0130.07319.94
7.0.50.0230.06720.47
7.0.40.0030.08720.27
7.0.30.0000.08720.16
7.0.20.0030.04720.03
7.0.10.0130.03720.05
7.0.00.0130.07320.07
5.6.280.0000.05320.78
5.6.260.0130.07720.65
5.6.250.0130.07720.68
5.6.240.0000.04720.57
5.6.230.0170.06720.57
5.6.220.0030.08320.65
5.6.210.0130.05320.71
5.6.200.0100.08320.96
5.6.190.0130.07721.16
5.6.180.0070.08721.15
5.6.170.0000.05320.94
5.6.160.0070.08020.93
5.6.150.0070.09021.06
5.6.140.0070.09021.26
5.6.130.0100.05021.27
5.6.120.0070.08321.09
5.6.110.0070.06720.93
5.6.100.0100.04320.92
5.6.90.0100.07321.02
5.6.80.0070.07720.48
5.6.70.0130.04020.52
5.6.60.0130.07320.43
5.6.50.0100.03720.53
5.6.40.0070.06320.64
5.6.30.0100.07320.31
5.6.20.0000.08720.50
5.6.10.0070.07720.50
5.6.00.0070.07720.23
5.5.380.0100.07320.58
5.5.370.0130.07020.29
5.5.360.0130.04320.24
5.5.350.0200.07020.46
5.5.340.0030.08720.91
5.5.330.0100.07720.89
5.5.320.0130.07720.80
5.5.310.0030.08720.78
5.5.300.0070.08721.04
5.5.290.0100.06720.93
5.5.280.0100.07720.95
5.5.270.0100.07320.98
5.5.260.0070.07720.94
5.5.250.0030.08720.75
5.5.240.0070.07720.40
5.5.230.0070.07720.35
5.5.220.0130.07320.27
5.5.210.0100.07320.39
5.5.200.0100.07720.26
5.5.190.0030.05320.37
5.5.180.0100.07320.03
5.5.160.0100.07020.25
5.5.150.0130.07720.09
5.5.140.0030.07020.29
5.5.130.0070.08020.22
5.5.120.0100.07720.39
5.5.110.0070.07320.15
5.5.100.0200.06720.14
5.5.90.0030.07720.14
5.5.80.0170.07020.02
5.5.70.0100.07320.04
5.5.60.0100.07720.18
5.5.50.0000.08019.97
5.5.40.0070.08020.22
5.5.30.0000.08720.21
5.5.20.0030.08019.99
5.5.10.0100.07020.18
5.5.00.0170.07020.11
5.4.450.0030.07719.52
5.4.440.0130.06319.51
5.4.430.0070.07719.30
5.4.420.0070.08019.27
5.4.410.0070.05019.18
5.4.400.0070.06719.19
5.4.390.0070.08019.18
5.4.380.0030.07019.04
5.4.370.0170.06719.09
5.4.360.0100.07318.95
5.4.350.0030.08019.03
5.4.340.0070.07319.31
5.4.320.0070.08019.26
5.4.310.0070.06319.31
5.4.300.0170.06719.03
5.4.290.0100.07718.99
5.4.280.0130.07318.98
5.4.270.0100.07719.02
5.4.260.0070.06318.99
5.4.250.0100.06719.30
5.4.240.0030.07719.18
5.4.230.0130.07018.99
5.4.220.0100.06019.22
5.4.210.0070.07319.16
5.4.200.0100.07019.01
5.4.190.0030.08019.31
5.4.180.0170.07019.17
5.4.170.0100.06719.16
5.4.160.0200.06018.98
5.4.150.0100.07019.16
5.4.140.0100.06316.54
5.4.130.0070.04716.52
5.4.120.0100.06716.68
5.4.110.0070.07316.46
5.4.100.0170.06016.48
5.4.90.0070.05716.71
5.4.80.0030.06716.60
5.4.70.0030.07316.45
5.4.60.0070.07016.49
5.4.50.0000.05316.41
5.4.40.0170.06716.34
5.4.30.0030.07716.38
5.4.20.0100.06716.43
5.4.10.0030.08016.43
5.4.00.0130.06715.95

preferences:
86.07 ms | 401 KiB | 5 Q