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"); $testStdClass = array(new \StdClass(), '__construct'); wtf($test); wtf($testStdClass);

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.40.0090.00618.54
8.3.30.0110.00418.85
8.3.20.0000.00820.21
8.3.10.0040.00423.71
8.3.00.0080.00022.58
8.2.170.0070.00722.96
8.2.160.0000.01420.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00317.75
8.2.110.0060.00319.27
8.2.100.0060.00617.63
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0060.00317.59
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0090.00021.00
8.2.30.0000.00718.05
8.2.20.0070.00017.71
8.2.10.0040.00418.02
8.2.00.0030.00518.11
8.1.270.0040.00420.33
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.96
8.1.230.0070.00417.76
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0060.00317.35
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0040.00422.03
8.1.150.0040.00418.81
8.1.140.0040.00417.38
8.1.130.0000.00717.71
8.1.120.0040.00417.37
8.1.110.0080.00017.35
8.1.100.0040.00417.45
8.1.90.0000.00717.47
8.1.80.0040.00417.51
8.1.70.0000.00717.37
8.1.60.0040.00417.63
8.1.50.0040.00417.43
8.1.40.0030.00617.53
8.1.30.0000.00917.59
8.1.20.0030.00617.70
8.1.10.0070.00017.65
8.1.00.0040.00417.49
8.0.300.0030.00618.77
8.0.290.0030.00616.75
8.0.280.0000.00718.45
8.0.270.0030.00317.19
8.0.260.0030.00317.17
8.0.250.0040.00416.92
8.0.240.0030.00316.96
8.0.230.0050.00216.99
8.0.220.0000.00816.99
8.0.210.0030.00316.94
8.0.200.0060.00016.91
8.0.190.0000.00717.01
8.0.180.0080.00017.03
8.0.170.0040.00416.98
8.0.160.0030.00616.98
8.0.150.0050.00216.87
8.0.140.0070.00316.82
8.0.130.0060.00013.45
8.0.120.0030.00616.88
8.0.110.0040.00416.87
8.0.100.0040.00416.96
8.0.90.0070.00016.85
8.0.80.0090.00616.93
8.0.70.0040.00417.00
8.0.60.0040.00416.83
8.0.50.0030.00516.83
8.0.30.0100.00717.21
8.0.20.0080.01117.40
8.0.10.0030.00517.14
8.0.00.0120.00616.86
7.4.330.0000.00515.08
7.4.320.0070.00016.53
7.4.300.0000.00716.66
7.4.290.0020.00516.61
7.4.280.0050.00316.52
7.4.270.0030.00316.62
7.4.260.0030.00316.58
7.4.250.0030.00516.57
7.4.240.0020.00516.58
7.4.230.0050.00516.61
7.4.220.0060.02016.54
7.4.210.0120.00616.67
7.4.200.0000.00716.59
7.4.160.0030.01216.59
7.4.150.0150.00917.40
7.4.140.0130.00517.86
7.4.130.0050.01516.62
7.4.120.0090.00816.52
7.4.110.0190.00016.69
7.4.100.0150.00316.45
7.4.90.0130.00616.49
7.4.80.0070.01219.39
7.4.70.0100.01016.41
7.4.60.0110.00616.46
7.4.50.0030.00616.57
7.4.40.0130.00816.31
7.4.30.0040.01416.51
7.4.00.0090.00614.99
7.3.330.0030.00313.45
7.3.320.0000.00513.38
7.3.310.0020.00516.32
7.3.300.0000.00716.23
7.3.290.0000.00716.47
7.3.280.0070.01216.34
7.3.270.0060.01217.40
7.3.260.0180.00316.46
7.3.250.0140.00716.46
7.3.240.0130.00316.44
7.3.230.0110.00616.43
7.3.210.0110.00616.39
7.3.200.0090.01219.39
7.3.190.0030.01716.48
7.3.180.0080.00816.46
7.3.170.0100.01216.37
7.3.160.0110.00616.48
7.3.120.0070.01315.02
7.3.110.0090.00614.58
7.3.100.0070.01314.52
7.3.90.0040.01114.74
7.3.80.0000.01314.58
7.3.70.0030.00714.97
7.3.60.0000.01314.71
7.3.50.0030.01314.71
7.3.40.0090.00914.88
7.3.30.0120.00614.66
7.3.20.0030.01016.70
7.3.10.0080.00516.54
7.3.00.0060.01016.44
7.2.330.0040.01316.71
7.2.320.0170.00316.45
7.2.310.0070.01416.77
7.2.300.0100.00716.80
7.2.290.0090.01216.80
7.2.250.0060.01215.32
7.2.240.0070.01114.84
7.2.230.0060.00915.22
7.2.220.0140.00315.18
7.2.210.0030.01015.09
7.2.200.0060.00314.79
7.2.190.0060.00615.21
7.2.180.0040.00915.11
7.2.170.0060.01015.22
7.2.160.0060.00314.71
7.2.150.0030.00916.83
7.2.140.0090.00316.97
7.2.130.0050.01116.82
7.2.120.0030.01016.98
7.2.110.0060.00917.04
7.2.100.0110.00317.07
7.2.90.0050.01017.02
7.2.80.0050.00716.91
7.2.70.0060.00916.83
7.2.60.0070.00816.96
7.2.50.0060.01116.79
7.2.40.0100.00717.04
7.2.30.0030.01317.04
7.2.20.0050.01016.91
7.2.10.0050.01016.93
7.2.00.0070.00717.79
7.1.330.0000.01815.73
7.1.320.0070.01015.93
7.1.310.0030.01015.73
7.1.300.0000.01315.77
7.1.290.0110.00415.71
7.1.280.0040.01215.68
7.1.270.0050.00515.79
7.1.260.0100.00716.00
7.1.250.0030.00915.77
7.1.240.0080.00315.73
7.1.230.0030.01215.89
7.1.220.0030.01215.84
7.1.210.0080.00415.71
7.1.200.0050.00815.57
7.1.190.0030.00715.56
7.1.180.0070.00715.68
7.1.170.0030.00715.62
7.1.160.0080.00715.89
7.1.150.0040.01215.72
7.1.140.0070.00715.86
7.1.130.0030.01015.62
7.1.120.0040.01115.84
7.1.110.0000.00915.86
7.1.100.0070.00616.84
7.1.90.0060.00915.95
7.1.80.0120.00615.79
7.1.70.0040.00816.58
7.1.60.0070.01217.95
7.1.50.0060.00916.38
7.1.40.0120.00315.43
7.1.30.0120.00315.88
7.1.20.0000.01115.68
7.1.10.0030.00715.70
7.1.00.0020.04518.96
7.0.330.0070.00715.43
7.0.320.0040.01215.51
7.0.310.0090.00615.19
7.0.300.0000.01015.43
7.0.290.0030.00915.27
7.0.280.0110.00015.37
7.0.270.0040.00715.46
7.0.260.0070.00715.26
7.0.250.0030.00915.49
7.0.240.0080.00415.66
7.0.230.0120.00315.52
7.0.220.0040.01415.24
7.0.210.0050.00315.44
7.0.200.0150.00415.15
7.0.190.0040.01115.45
7.0.180.0060.00615.22
7.0.170.0090.00315.39
7.0.160.0030.00515.44
7.0.150.0100.00315.40
7.0.140.0040.01115.55
7.0.130.0030.00815.32
7.0.120.0030.01015.59
7.0.110.0110.00015.52
7.0.100.0060.01015.49
7.0.90.0070.00715.55
7.0.80.0100.00015.50
7.0.70.0070.01115.43
7.0.60.0030.04417.69
7.0.50.0100.02516.69
7.0.40.0030.04016.90
7.0.30.0280.03816.94
7.0.20.0210.04217.06
7.0.10.0130.02316.93
7.0.00.0030.03316.97
5.6.400.0060.00914.15
5.6.390.0000.01114.20
5.6.380.0030.01314.55
5.6.370.0060.01014.55
5.6.360.0120.00314.20
5.6.350.0000.01014.62
5.6.340.0000.01714.34
5.6.330.0040.00414.39
5.6.320.0040.00714.11
5.6.310.0030.01014.30
5.6.300.0000.01614.14
5.6.290.0100.00314.13
5.6.280.0030.03717.62
5.6.270.0060.00614.39
5.6.260.0060.00614.46
5.6.250.0000.01414.22
5.6.240.0080.00014.39
5.6.230.0120.00314.30
5.6.220.0070.00714.41
5.6.210.0030.04617.64
5.6.200.0070.04516.21
5.6.190.0150.02017.32
5.6.180.0190.02217.35
5.6.170.0200.04017.41
5.6.160.0030.04017.26
5.6.150.0050.04516.19
5.6.140.0050.02216.20
5.6.130.0060.04116.29
5.6.120.0030.03617.56
5.6.110.0110.04517.70
5.6.100.0100.04017.69
5.6.90.0080.02317.68
5.6.80.0060.04117.39
5.6.70.1830.02517.32
5.6.60.0000.01414.23
5.6.50.0100.00014.48
5.6.40.0090.00614.24
5.6.30.0060.01114.44
5.6.20.0070.00714.34
5.6.10.0000.00914.14
5.6.00.0040.00713.96
5.5.380.0150.00014.32
5.5.370.0040.00814.20
5.5.360.0030.01214.30
5.5.350.0000.02517.35
5.5.340.0010.03616.08
5.5.330.0100.03217.07
5.5.320.0170.03317.22
5.5.310.0080.02517.35
5.5.300.0100.04316.16
5.5.290.0030.04815.94
5.5.280.0110.04017.50
5.5.270.0020.03317.71
5.5.260.0080.04517.54
5.5.250.0070.04717.41
5.5.240.0090.01717.25
5.5.230.0090.00614.03
5.5.220.0040.01114.01
5.5.210.0100.00314.05
5.5.200.0000.01014.35
5.5.190.0070.01013.89
5.5.180.0060.00914.35
5.5.170.0040.01114.30
5.5.160.0040.00714.48
5.5.150.0100.00714.05
5.5.140.0040.01514.05
5.5.130.0040.00714.48
5.5.120.0100.00314.29
5.5.110.0060.01014.41
5.5.100.0040.01114.30
5.5.90.0070.00714.07
5.5.80.0100.00314.43
5.5.70.0090.00314.29
5.5.60.0060.00913.99
5.5.50.0060.00614.31
5.5.40.0070.00714.23
5.5.30.0000.01214.06
5.5.20.0030.00613.99
5.5.10.0110.00413.79
5.5.00.0030.01314.34
5.4.450.0580.02516.62
5.4.440.0430.03516.67
5.4.430.0440.03216.61
5.4.420.0420.03716.63
5.4.410.0440.02816.41
5.4.400.0440.02716.46
5.4.390.0400.03116.42
5.4.380.0420.03116.52
5.4.370.0450.03116.32
5.4.360.0470.02016.44
5.4.350.0400.03216.44
5.4.340.0480.03316.54
5.4.330.0000.00913.79
5.4.320.0370.03516.58
5.4.310.0490.02816.37
5.4.300.0470.03116.58
5.4.290.0550.03016.53
5.4.280.0480.04016.53
5.4.270.0420.03016.51
5.4.260.0380.03316.53
5.4.250.0520.02716.53
5.4.240.0370.03216.57
5.4.230.0420.02416.42
5.4.220.0480.02816.52
5.4.210.0400.03216.37
5.4.200.0460.03015.35
5.4.190.0320.03316.42
5.4.180.0450.03216.42
5.4.170.0500.02716.38
5.4.160.0470.04016.42
5.4.150.0330.03816.56
5.4.140.0380.03015.12
5.4.130.0460.02315.20
5.4.120.0430.03315.19
5.4.110.0460.02715.12
5.4.100.0380.03315.11
5.4.90.0430.03015.20
5.4.80.0420.02215.27
5.4.70.0480.02515.11
5.4.60.0050.03015.07
5.4.50.0030.02615.11
5.4.40.0080.03615.09
5.4.30.0130.03815.06
5.4.20.0130.02415.11
5.4.10.0000.01213.79
5.4.00.0040.00713.79

preferences:
54.2 ms | 400 KiB | 5 Q