3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My\Psr0\SuperNameSpace; function array_keys(array $array) { echo 'This is MY function!' . PHP_EOL; // Backslash for root namespace where php functions are from return \array_keys($array); } class Foo { public function bar() { return array_keys(array('a','b','c')); } } $foo = new Foo(); var_dump($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.40.0140.00718.59
8.3.30.0070.00718.54
8.3.20.0040.00418.60
8.3.10.0040.00420.36
8.3.00.0090.00017.63
8.2.170.0140.00022.96
8.2.160.0100.00322.16
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00019.97
8.2.110.0030.00720.93
8.2.100.0040.00817.78
8.2.90.0100.00019.26
8.2.80.0030.00617.93
8.2.70.0060.00317.50
8.2.60.0030.00517.80
8.2.50.0060.00318.07
8.2.40.0040.00419.88
8.2.30.0070.00017.95
8.2.20.0040.00417.66
8.2.10.0000.00717.57
8.2.00.0070.00317.54
8.1.270.0050.00223.99
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00320.88
8.1.230.0070.00421.04
8.1.220.0000.00817.76
8.1.210.0080.00019.03
8.1.200.0000.01017.35
8.1.190.0040.00417.52
8.1.180.0080.00018.10
8.1.170.0050.00318.72
8.1.160.0040.00418.82
8.1.150.0000.00718.56
8.1.140.0000.00817.36
8.1.130.0030.00317.81
8.1.120.0030.00317.36
8.1.110.0030.00717.44
8.1.100.0000.00717.49
8.1.90.0000.00717.39
8.1.80.0070.00017.48
8.1.70.0070.00017.36
8.1.60.0070.00017.49
8.1.50.0040.00417.45
8.1.40.0040.00417.40
8.1.30.0000.00717.66
8.1.20.0030.00617.51
8.1.10.0030.00517.51
8.1.00.0040.00417.48
8.0.300.0050.00319.98
8.0.290.0040.00416.75
8.0.280.0070.00318.30
8.0.270.0000.00817.25
8.0.260.0000.00718.61
8.0.250.0020.00516.85
8.0.240.0050.00316.99
8.0.230.0040.00416.99
8.0.220.0030.00316.79
8.0.210.0000.00816.88
8.0.200.0030.00316.97
8.0.190.0040.00416.86
8.0.180.0000.00816.82
8.0.170.0000.00816.98
8.0.160.0030.00316.92
8.0.150.0040.00416.72
8.0.140.0060.00316.79
8.0.130.0060.00013.30
8.0.120.0040.00416.85
8.0.110.0080.00016.84
8.0.100.0040.00416.79
8.0.90.0050.00216.88
8.0.80.0120.00916.84
8.0.70.0050.00216.76
8.0.60.0050.00216.81
8.0.50.0000.00716.88
8.0.30.0110.01217.12
8.0.20.0110.00717.07
8.0.10.0000.00716.96
8.0.00.0150.00616.66
7.4.330.0000.00614.66
7.4.320.0000.00616.40
7.4.300.0060.00016.60
7.4.290.0030.00316.52
7.4.280.0060.00316.60
7.4.270.0040.00416.58
7.4.260.0030.00313.27
7.4.250.0000.00716.44
7.4.240.0000.00716.54
7.4.230.0050.00216.55
7.4.220.0120.00916.60
7.4.210.0090.00716.49
7.4.200.0000.00816.53
7.4.190.0040.00416.39
7.4.160.0090.00616.38
7.4.150.0100.00717.07
7.4.140.0090.00917.09
7.4.130.0110.00616.48
7.4.120.0080.00816.54
7.4.110.0090.01116.39
7.4.100.0070.01716.45
7.4.90.0100.01316.54
7.4.80.0150.00318.80
7.4.70.0110.00716.45
7.4.60.0080.00816.60
7.4.50.0030.00316.30
7.4.40.0000.01522.26
7.4.30.0060.01116.61
7.4.10.0100.01014.85
7.4.00.0110.00714.98
7.3.330.0020.00613.18
7.3.320.0030.00313.25
7.3.310.0030.00316.34
7.3.300.0000.00616.37
7.3.290.0060.01316.25
7.3.280.0100.00516.29
7.3.270.0150.00417.07
7.3.260.0140.00718.24
7.3.250.0070.01016.37
7.3.240.0060.01116.36
7.3.230.0140.00316.43
7.3.210.0130.00716.35
7.3.200.0150.00319.39
7.3.190.0160.00616.51
7.3.180.0080.00816.50
7.3.170.0040.01116.43
7.3.160.0080.00816.47
7.3.130.0030.01314.79
7.3.120.0040.01314.76
7.3.110.0050.00814.51
7.3.100.0060.00714.90
7.3.90.0090.00314.72
7.3.80.0020.01014.88
7.3.70.0050.00514.80
7.3.60.0020.00914.70
7.3.50.0070.00714.88
7.3.40.0050.01014.76
7.3.30.0070.00714.74
7.3.20.0050.00916.64
7.3.10.0040.00516.58
7.3.00.0080.00716.49
7.2.330.0120.00616.77
7.2.320.0100.01016.40
7.2.310.0000.01916.76
7.2.300.0050.01316.55
7.2.290.0030.01416.54
7.2.260.0100.01014.77
7.2.250.0070.01115.01
7.2.240.0070.00915.10
7.2.230.0060.00615.15
7.2.220.0100.00414.98
7.2.210.0050.00615.04
7.2.200.0020.01115.01
7.2.190.0060.00914.81
7.2.180.0040.00815.03
7.2.170.0070.00814.93
7.2.160.0060.00715.02
7.2.150.0050.00916.95
7.2.140.0040.01316.79
7.2.130.0030.01016.75
7.2.120.0100.00416.90
7.2.110.0100.00616.97
7.2.100.0070.00816.93
7.2.90.0060.00916.83
7.2.80.0120.00316.88
7.2.70.0090.00716.79
7.2.60.0070.00716.88
7.2.50.0070.00616.82
7.2.40.0030.00916.74
7.2.30.0080.00516.76
7.2.20.0110.00416.85
7.2.10.0040.00816.96
7.2.00.0070.00817.55
7.1.330.0050.00715.68
7.1.320.0010.01015.43
7.1.310.0060.00715.73
7.1.300.0070.00215.70
7.1.290.0070.00415.58
7.1.280.0030.00615.70
7.1.270.0020.01015.72
7.1.260.0070.00715.73
7.1.250.0080.00515.57
7.1.240.0060.00615.55
7.1.230.0030.01315.79
7.1.220.0120.00015.56
7.1.210.0100.00015.81
7.1.200.0070.00715.70
7.1.190.0070.00715.91
7.1.180.0070.01015.60
7.1.170.0090.00615.73
7.1.160.0090.00315.73
7.1.150.0070.01015.73
7.1.140.0070.01115.58
7.1.130.0060.00615.82
7.1.120.0100.00615.73
7.1.110.0060.00315.66
7.1.100.0030.01016.84
7.1.90.0110.00715.68
7.1.80.0070.00715.84
7.1.70.0080.00416.36
7.1.60.0050.01417.63
7.1.50.0110.00316.34
7.1.40.0070.00315.48
7.1.30.0030.00915.61
7.1.20.0030.01015.62
7.1.10.0040.00815.47
7.1.00.0040.03519.18
7.0.330.0030.01015.11
7.0.320.0000.01215.56
7.0.310.0030.00715.13
7.0.300.0080.00615.37
7.0.290.0090.00415.38
7.0.280.0060.00315.43
7.0.270.0120.00015.50
7.0.260.0030.00915.50
7.0.250.0070.01115.28
7.0.240.0040.00815.50
7.0.230.0030.00915.48
7.0.220.0100.00015.53
7.0.210.0070.00715.15
7.0.200.0050.00816.09
7.0.190.0040.00715.45
7.0.180.0060.00615.31
7.0.170.0000.01315.19
7.0.160.0060.00315.36
7.0.150.0000.01215.48
7.0.140.0050.03918.75
7.0.130.0030.01015.38
7.0.120.0020.02018.68
7.0.110.0030.00515.56
7.0.100.0060.00915.43
7.0.90.0030.00815.30
7.0.80.0070.00715.52
7.0.70.0070.00715.17
7.0.60.0150.04817.55
7.0.50.0070.02716.55
7.0.40.0050.03016.79
7.0.30.0100.04516.79
7.0.20.0070.02716.72
7.0.10.0040.02616.88
7.0.00.0030.04616.76
5.6.400.0070.00714.59
5.6.390.0070.00714.56
5.6.380.0000.01313.86
5.6.370.0000.01514.24
5.6.360.0030.00614.39
5.6.350.0080.00414.20
5.6.340.0060.00914.12
5.6.330.0080.00414.11
5.6.320.0110.00414.53
5.6.310.0040.01114.36
5.6.300.0060.00614.48
5.6.290.0030.00914.34
5.6.280.0110.03517.56
5.6.270.0030.00714.34
5.6.260.0090.00014.45
5.6.250.0030.00914.46
5.6.240.0120.00414.31
5.6.230.0060.00614.23
5.6.220.0050.00814.38
5.6.210.0100.03717.47
5.6.200.0050.03016.27
5.6.190.0040.05017.48
5.6.180.0130.03917.51
5.6.170.0050.04817.36
5.6.160.0080.04217.36
5.6.150.0050.04017.34
5.6.140.0030.02817.50
5.6.130.0080.02517.34
5.6.120.0080.02917.32
5.6.110.0120.04017.39
5.6.100.0070.02917.32
5.6.90.0070.03017.27
5.6.80.0120.03816.99
5.6.70.0060.02417.02
5.6.60.0100.04516.85
5.6.50.0030.04716.84
5.6.40.0090.04117.11
5.6.30.0070.03216.96
5.6.20.0070.04216.94
5.6.10.0020.05016.99
5.6.00.0030.04617.08
5.5.380.0120.00014.38
5.5.370.0060.00614.39
5.5.360.0060.01214.37
5.5.350.0050.01817.26
5.5.340.0070.02016.12
5.5.330.0100.04317.25
5.5.320.0080.03817.43
5.5.310.0080.03617.36
5.5.300.0100.04017.13
5.5.290.0070.04817.10
5.5.280.0080.04217.09
5.5.270.0040.04517.37
5.5.260.0050.04717.29
5.5.250.0070.02617.04
5.5.240.0100.02816.88
5.5.230.0030.03016.83
5.5.220.0050.02516.98
5.5.210.0070.04316.90
5.5.200.0050.02416.86
5.5.190.0100.04516.83
5.5.180.0050.04316.68
5.5.170.0040.00814.01
5.5.160.0070.02216.81
5.5.150.0050.02416.88
5.5.140.0070.03416.96
5.5.130.0040.03417.02
5.5.120.0090.03816.71
5.5.110.0090.02117.03
5.5.100.0070.04016.73
5.5.90.0050.03316.71
5.5.80.0050.02516.76
5.5.70.0070.02716.75
5.5.60.0020.04816.86
5.5.50.0030.04316.77
5.5.40.0050.03616.77
5.5.30.0090.03716.73
5.5.20.0110.02616.83
5.5.10.0030.02716.71
5.5.00.0020.04116.70
5.4.450.0030.02416.11
5.4.440.0080.03816.25
5.4.430.0050.03016.27
5.4.420.0060.03316.13
5.4.410.0060.02316.16
5.4.400.0020.02616.05
5.4.390.0080.03816.00
5.4.380.0070.03916.11
5.4.370.0050.03516.06
5.4.360.0090.03315.92
5.4.350.0050.04216.12
5.4.340.0080.02016.01
5.4.330.0070.00412.98
5.4.320.0090.03515.95
5.4.310.0080.02516.11
5.4.300.0070.03216.02
5.4.290.0030.04116.06
5.4.280.0050.02316.06
5.4.270.0070.02316.06
5.4.260.0020.04216.03
5.4.250.0030.04416.11
5.4.240.0030.03916.12
5.4.230.0050.04116.09
5.4.220.0080.03016.06
5.4.210.0070.03416.06
5.4.200.0090.03316.10
5.4.190.0060.02315.92
5.4.180.0070.02016.06
5.4.170.0090.03716.02
5.4.160.0070.03216.08
5.4.150.0070.03716.11
5.4.140.0080.03714.64
5.4.130.0070.03814.69
5.4.120.0070.03914.70
5.4.110.0110.03514.73
5.4.100.0020.02114.78
5.4.90.0070.04014.76
5.4.80.0060.03614.72
5.4.70.0050.02514.72
5.4.60.0120.03514.69
5.4.50.0050.01814.70
5.4.40.0040.03514.62
5.4.30.0050.02814.67
5.4.20.0120.03714.63
5.4.10.0050.02214.66
5.4.00.0030.02314.41
5.3.290.0040.04313.90
5.3.280.0050.04613.79
5.3.270.0050.02213.83
5.3.260.0100.03313.73
5.3.250.0080.02813.79
5.3.240.0050.02213.79
5.3.230.0080.03113.73
5.3.220.0050.04113.79
5.3.210.0030.02213.79
5.3.200.0020.03713.81
5.3.190.0050.02213.84
5.3.180.0030.02513.81
5.3.170.0020.03713.78
5.3.160.0080.03013.73
5.3.150.0020.02613.73
5.3.140.0030.04213.77
5.3.130.0050.02513.79
5.3.120.0050.03313.78
5.3.110.0030.03113.77
5.3.100.0070.03013.51
5.3.90.0020.02613.52
5.3.80.0050.04013.52
5.3.70.0030.02113.53
5.3.60.0050.02313.53
5.3.50.0030.04113.50
5.3.40.0030.04013.49
5.3.30.0100.03513.45
5.3.20.0030.04013.33
5.3.10.0040.04213.39
5.3.00.0070.03813.38
5.2.170.0100.05711.13
5.2.160.0070.03011.23
5.2.150.0070.03311.03
5.2.140.0170.04711.09
5.2.130.0130.04311.26
5.2.120.0070.03011.00
5.2.110.0070.05011.08
5.2.100.0070.05711.11
5.2.90.0100.05011.27
5.2.80.0030.06011.03
5.2.70.0030.06310.95
5.2.60.0070.06010.89
5.2.50.0030.03010.98
5.2.40.0000.04710.92
5.2.30.0070.03010.95
5.2.20.0030.06010.92
5.2.10.0070.04310.86
5.2.00.0100.05310.71
5.1.60.0000.03310.06
5.1.50.0000.0509.98
5.1.40.0100.0539.98
5.1.30.0130.04310.38
5.1.20.0070.03010.23
5.1.10.0000.05010.06
5.1.00.0030.03310.08
5.0.50.0030.0338.59
5.0.40.0030.0238.46
5.0.30.0000.0708.18
5.0.20.0070.0178.16
5.0.10.0030.0478.07
5.0.00.0030.0578.11
4.4.90.0030.0336.76
4.4.80.0030.0206.76
4.4.70.0000.0376.76
4.4.60.0000.0376.76
4.4.50.0030.0306.76
4.4.40.0000.0576.76
4.4.30.0030.0276.76
4.4.20.0000.0236.76
4.4.10.0030.0306.76
4.4.00.0000.0436.76
4.3.110.0030.0176.76
4.3.100.0000.0206.76
4.3.90.0070.0106.76
4.3.80.0000.0276.76
4.3.70.0000.0176.76
4.3.60.0030.0176.76
4.3.50.0000.0376.76
4.3.40.0030.0536.76
4.3.30.0000.0306.76
4.3.20.0030.0176.76
4.3.10.0000.0406.76
4.3.00.0030.0236.76

preferences:
41.37 ms | 400 KiB | 5 Q