3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callable_equals(callable $a, callable $b){ $f = function(callable $callable){ if(is_string($callable)){ $callable = strtolower($callable); if(count($pieces = explode("::", $callable)) == 2){ return [$pieces[0], $pieces[1]]; } return $callable; } $callable[1] = strtolower($callable[1]); return $callable; }; $a = $f($a); $b = $f($b); var_dump($a, $b); return $a === $b; } class Foo{static function bar(){}} var_dump(callable_equals( ['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.0080.01118.30
8.3.50.0080.00818.04
8.3.40.0120.00318.85
8.3.30.0140.00419.21
8.3.20.0040.00420.37
8.3.10.0000.00821.58
8.3.00.0030.00619.27
8.2.180.0130.01018.14
8.2.170.0120.00322.96
8.2.160.0000.01520.58
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0080.00019.68
8.2.110.0110.00721.06
8.2.100.0060.00617.59
8.2.90.0040.00419.22
8.2.80.0030.00617.97
8.2.70.0000.00917.63
8.2.60.0000.00917.93
8.2.50.0040.00418.10
8.2.40.0040.00420.07
8.2.30.0040.00418.06
8.2.20.0050.00217.71
8.2.10.0040.00418.01
8.2.00.0000.00717.88
8.1.280.0130.01325.92
8.1.270.0040.00424.66
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.97
8.1.230.0040.00817.77
8.1.220.0000.00817.76
8.1.210.0030.00518.77
8.1.200.0060.00317.25
8.1.190.0000.00917.35
8.1.180.0050.00318.10
8.1.170.0050.00320.42
8.1.160.0040.00421.99
8.1.150.0040.00418.84
8.1.140.0000.00917.45
8.1.130.0020.00517.88
8.1.120.0040.00417.41
8.1.110.0000.00917.39
8.1.100.0000.00817.52
8.1.90.0000.00717.38
8.1.80.0040.00417.48
8.1.70.0000.00717.37
8.1.60.0030.00617.49
8.1.50.0030.00517.54
8.1.40.0040.00417.53
8.1.30.0060.00317.66
8.1.20.0040.00417.69
8.1.10.0000.00717.42
8.1.00.0030.00617.56
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0070.00018.46
8.0.270.0030.00317.14
8.0.260.0050.00217.27
8.0.250.0030.00317.04
8.0.240.0020.00516.90
8.0.230.0000.00817.05
8.0.220.0000.00716.84
8.0.210.0030.00316.91
8.0.200.0000.00617.04
8.0.190.0040.00416.99
8.0.180.0000.00816.99
8.0.170.0050.00317.03
8.0.160.0030.00316.89
8.0.150.0040.00416.74
8.0.140.0040.00416.96
8.0.130.0000.00713.48
8.0.120.0060.00316.96
8.0.110.0000.00816.91
8.0.100.0000.00716.96
8.0.90.0000.00717.01
8.0.80.0060.01516.91
8.0.70.0040.00416.82
8.0.60.0000.00716.87
8.0.50.0040.00417.03
8.0.30.0150.01017.16
8.0.20.0120.00717.40
8.0.10.0070.00016.92
8.0.00.0110.00616.85
7.4.330.0000.00515.03
7.4.320.0000.00616.61
7.4.300.0060.00016.59
7.4.290.0030.00316.51
7.4.280.0000.00716.61
7.4.270.0070.00016.62
7.4.260.0030.00316.40
7.4.250.0070.00016.54
7.4.240.0030.00616.54
7.4.230.0070.00016.63
7.4.220.0130.00616.48
7.4.210.0110.00616.69
7.4.200.0040.00416.42
7.4.160.0180.00016.69
7.4.150.0070.01417.40
7.4.140.0090.00817.86
7.4.130.0100.00716.39
7.4.120.0130.00716.45
7.4.110.0100.01316.49
7.4.100.0060.01616.59
7.4.90.0070.01016.54
7.4.80.0090.00919.39
7.4.70.0140.00316.67
7.4.60.0140.00316.56
7.4.50.0080.00016.56
7.4.40.0070.01316.39
7.4.30.0120.00416.55
7.4.10.0090.00914.82
7.4.00.0040.01215.00
7.3.330.0040.00313.18
7.3.320.0060.00613.10
7.3.310.0000.00716.18
7.3.300.0030.00316.35
7.3.290.0040.00416.32
7.3.280.0080.00916.34
7.3.270.0110.00617.40
7.3.260.0060.01216.60
7.3.250.0090.00916.47
7.3.240.0090.00916.30
7.3.230.0100.00716.47
7.3.210.0150.00416.41
7.3.200.0140.00519.39
7.3.190.0080.00816.56
7.3.180.0030.01516.49
7.3.170.0090.01216.50
7.3.160.0130.01016.38
7.3.130.0060.00915.12
7.3.120.0080.00814.82
7.3.110.0090.00714.92
7.3.100.0020.01314.82
7.3.90.0050.00514.80
7.3.80.0050.01014.81
7.3.70.0040.00914.74
7.3.60.0060.00914.71
7.3.50.0060.00614.70
7.3.40.0050.00714.88
7.3.30.0100.00414.60
7.3.20.0060.01016.65
7.3.10.0100.00416.66
7.3.00.0070.00616.66
7.2.330.0090.00916.42
7.2.320.0120.00416.35
7.2.310.0190.00316.56
7.2.300.0120.00916.54
7.2.290.0150.00316.69
7.2.260.0110.00615.00
7.2.250.0100.01015.21
7.2.240.0100.00814.80
7.2.230.0050.00814.96
7.2.220.0000.01015.29
7.2.210.0050.00815.14
7.2.200.0050.01114.99
7.2.190.0080.00514.90
7.2.180.0060.00714.92
7.2.170.0130.00315.08
7.2.160.0000.01415.19
7.2.150.0140.00316.77
7.2.140.0070.00716.92
7.2.130.0030.01016.75
7.2.120.0000.01016.88
7.2.110.0030.01217.03
7.2.100.0030.01317.13
7.2.90.0070.01016.93
7.2.80.0000.01417.05
7.2.70.0000.01216.91
7.2.60.0000.01416.93
7.2.50.0140.00316.67
7.2.40.0000.01016.81
7.2.30.0070.01017.08
7.2.20.0100.00616.79
7.2.10.0030.01016.82
7.2.00.0050.01018.20
7.1.330.0100.00615.91
7.1.320.0030.01015.89
7.1.310.0120.00715.67
7.1.300.0070.00715.70
7.1.290.0040.01015.86
7.1.280.0070.00715.87
7.1.270.0020.01015.94
7.1.260.0050.01015.72
7.1.250.0050.00515.54
7.1.240.0080.00815.93
7.1.230.0070.00715.66
7.1.220.0040.00815.95
7.1.210.0090.00615.58
7.1.200.0070.00515.85
7.1.190.0000.01215.51
7.1.180.0100.00315.84
7.1.170.0030.00615.73
7.1.160.0100.00315.64
7.1.150.0100.00015.99
7.1.140.0070.00715.75
7.1.130.0060.00615.71
7.1.120.0090.00615.69
7.1.110.0100.00316.00
7.1.100.0050.00616.94
7.1.90.0070.01015.63
7.1.80.0090.00615.93
7.1.70.0050.00516.43
7.1.60.0080.01117.75
7.1.50.0080.01116.52
7.1.40.0060.00315.77
7.1.30.0060.00615.85
7.1.20.0000.00915.87
7.1.10.0040.00415.87
7.1.00.0050.04319.02
7.0.330.0080.00615.53
7.0.320.0060.00915.49
7.0.310.0040.01115.50
7.0.300.0060.00915.45
7.0.290.0030.00915.44
7.0.280.0040.00815.42
7.0.270.0070.00715.36
7.0.260.0070.00715.46
7.0.250.0090.00015.36
7.0.240.0080.00415.22
7.0.230.0060.00915.60
7.0.220.0030.00615.58
7.0.210.0030.00615.54
7.0.200.0150.00615.12
7.0.190.0030.00615.57
7.0.180.0060.01015.23
7.0.170.0080.00815.48
7.0.160.0030.00715.27
7.0.150.0060.00915.35
7.0.140.0030.04218.88
7.0.130.0040.01215.32
7.0.120.0020.04518.72
7.0.110.0040.03918.64
7.0.100.0080.02618.74
7.0.90.0030.02418.82
7.0.80.0030.02518.81
7.0.70.0050.04218.67
7.0.60.0050.04518.77
7.0.50.0030.03318.81
7.0.40.0020.04616.75
7.0.30.0080.04116.76
7.0.20.0010.03716.83
7.0.10.0030.03016.77
7.0.00.0080.02016.85
5.6.400.0060.00614.75
5.6.390.0070.00414.05
5.6.380.0070.00714.42
5.6.370.0060.00614.37
5.6.360.0040.01114.32
5.6.350.0070.00714.52
5.6.340.0000.01414.60
5.6.330.0030.01214.66
5.6.320.0030.00614.61
5.6.310.0060.00614.35
5.6.300.0100.00314.71
5.6.290.0150.00314.55
5.6.280.0040.04117.69
5.6.270.0030.02617.87
5.6.260.0000.02417.76
5.6.250.0090.03517.67
5.6.240.0070.03317.74
5.6.230.0050.03017.71
5.6.220.0030.04717.69
5.6.210.0070.04217.66
5.6.200.0030.04417.64
5.6.190.0060.04117.75
5.6.180.0110.02817.77
5.6.170.0030.02517.65
5.6.160.0110.03017.70
5.6.150.0040.02817.65
5.6.140.0020.03817.74
5.6.130.0020.03517.64
5.6.120.0140.03517.53
5.6.110.0020.05517.74
5.6.100.0050.04517.62
5.6.90.0020.02317.50
5.6.80.0020.05517.34
5.6.70.0030.02517.30
5.6.60.0060.04417.43
5.6.50.0060.02617.31
5.6.40.0030.03817.28
5.6.30.0020.03917.17
5.6.20.0050.04517.29
5.6.10.0030.03817.39
5.6.00.0040.02617.34
5.5.380.0020.03315.96
5.5.370.0050.04316.14
5.5.360.0000.03215.96
5.5.350.0070.02915.86
5.5.340.0100.03216.15
5.5.330.0030.04316.15
5.5.320.0070.02516.21
5.5.310.0030.02716.49
5.5.300.0040.01916.21
5.5.290.0030.02816.36
5.5.280.0040.03816.34
5.5.270.0030.02116.25
5.5.260.0070.04216.14
5.5.250.0020.03916.02
5.5.240.0020.02915.89
5.5.230.0090.02315.88
5.5.220.0060.04015.89
5.5.210.0060.02115.84
5.5.200.0020.02515.83
5.5.190.0050.02416.02
5.5.180.0080.03315.97
5.5.170.0070.00714.31
5.5.160.0050.02715.96
5.5.150.0090.03815.79
5.5.140.0030.02815.81
5.5.130.0080.03115.75
5.5.120.0070.02715.87
5.5.110.0050.02515.96
5.5.100.0040.03115.70
5.5.90.0010.03915.77
5.5.80.0050.02315.83
5.5.70.0070.03715.84
5.5.60.0050.03415.93
5.5.50.0050.03215.82
5.5.40.0030.02115.91
5.5.30.0080.03615.63
5.5.20.0070.04215.91
5.5.10.0090.03615.87
5.5.00.0070.02215.73
5.4.450.0020.04815.80
5.4.440.0070.01615.82
5.4.430.0030.04015.75
5.4.420.0020.03715.74
5.4.410.0050.02215.68
5.4.400.0030.03515.60
5.4.390.0000.04015.71
5.4.380.0030.03415.58
5.4.370.0020.03015.59
5.4.360.0020.04415.68
5.4.350.0020.02015.75
5.4.340.0050.02215.63
5.4.330.0000.01012.24
5.4.320.0050.03415.67
5.4.310.0020.03315.60
5.4.300.0060.03515.58
5.4.290.0030.04115.68
5.4.280.0100.03615.71
5.4.270.0040.04015.71
5.4.260.0040.01915.68
5.4.250.0030.04515.59
5.4.240.0050.03915.63
5.4.230.0070.03815.63
5.4.220.0060.03015.60
5.4.210.0020.03915.70
5.4.200.0090.01815.71
5.4.190.0030.02215.68
5.4.180.0030.04515.60
5.4.170.0100.03315.56
5.4.160.0020.03215.63
5.4.150.0050.03315.58
5.4.140.0030.04314.42
5.4.130.0060.01714.31
5.4.120.0050.04014.38
5.4.110.0050.03814.40
5.4.100.0030.02514.35
5.4.90.0000.02714.35
5.4.80.0070.03314.34
5.4.70.0020.02914.39
5.4.60.0050.01814.36
5.4.50.0020.02114.24
5.4.40.0060.01814.37
5.4.30.0030.02114.26
5.4.20.0060.02014.35
5.4.10.0040.01714.31
5.4.00.0080.01514.00
5.3.290.0000.04014.67
5.3.280.0030.03014.46
5.3.270.0030.04014.75
5.3.260.0030.03714.83
5.3.250.0100.05714.63
5.3.240.0070.06714.61
5.3.230.0000.04714.60
5.3.220.0030.05714.59
5.3.210.0030.06314.66
5.3.200.0070.05014.65
5.3.190.0000.04014.59
5.3.180.0070.05014.58
5.3.170.0030.06714.70
5.3.160.0000.04014.60
5.3.150.0000.04714.69
5.3.140.0030.03314.59
5.3.130.0070.03314.58
5.3.120.0030.03714.78
5.3.110.0000.03714.56
5.3.100.0030.03013.90
5.3.90.0000.03014.04
5.3.80.0000.03014.02
5.3.70.0000.03314.09
5.3.60.0070.02314.02
5.3.50.0030.02713.96
5.3.40.0030.02713.91
5.3.30.0000.05013.89
5.3.20.0030.03313.75
5.3.10.0070.02713.80
5.3.00.0000.03013.71
5.2.170.0030.02711.28
5.2.160.0000.03311.28
5.2.150.0000.02711.17
5.2.140.0000.02711.13
5.2.130.0000.05011.09
5.2.120.0000.02711.09
5.2.110.0000.02311.09
5.2.100.0000.03011.05
5.2.90.0070.02011.09
5.2.80.0030.06011.09
5.2.70.0000.04311.07
5.2.60.0000.03011.05
5.2.50.0000.02711.09
5.2.40.0000.02711.00
5.2.30.0000.03011.05
5.2.20.0000.02710.81
5.2.10.0000.02310.87
5.2.00.0000.02710.71
5.1.60.0030.02310.24
5.1.50.0000.0209.97
5.1.40.0030.02010.04
5.1.30.0030.02310.32
5.1.20.0000.02710.42
5.1.10.0000.02310.24
5.1.00.0000.02310.24
5.0.50.0030.0179.49
5.0.40.0030.0139.49
5.0.30.0030.0239.49
5.0.20.0030.0139.49
5.0.10.0030.0139.49
5.0.00.0000.0309.49
4.4.90.0000.0179.49
4.4.80.0000.0139.49
4.4.70.0000.0179.49
4.4.60.0000.0179.49
4.4.50.0000.0179.49
4.4.40.0030.0209.49
4.4.30.0000.0279.49
4.4.20.0030.0109.49
4.4.10.0000.0139.49
4.4.00.0000.0279.49
4.3.110.0030.0109.49
4.3.100.0030.0109.49
4.3.90.0000.0139.49
4.3.80.0000.0209.49
4.3.70.0000.0179.49
4.3.60.0000.0109.49
4.3.50.0000.0139.49
4.3.40.0000.0239.49
4.3.30.0000.0139.49
4.3.20.0000.0179.49
4.3.10.0000.0139.49
4.3.00.0000.0339.49

preferences:
58.49 ms | 400 KiB | 5 Q