3v4l.org

run code in 300+ PHP versions simultaneously
<?php function khod( $adeek = '' ) { $arg = is_array( $adeek ) ? $adeek : (array) $adeek; //echo $arg; print_r( $arg ); } khod( 'hello' );

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.0150.00318.55
8.3.50.0130.00821.10
8.3.40.0140.00718.73
8.3.30.0030.01418.80
8.3.20.0060.00320.20
8.3.10.0060.00923.65
8.3.00.0040.00423.53
8.2.180.0070.01116.63
8.2.170.0140.00722.96
8.2.160.0070.00722.11
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0110.00017.63
8.2.110.0030.00622.17
8.2.100.0080.00317.63
8.2.90.0050.00319.08
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0080.00017.91
8.2.50.0040.00418.07
8.2.40.0080.00021.10
8.2.30.0070.00417.86
8.2.20.0080.00017.74
8.2.10.0050.00218.02
8.2.00.0020.00517.89
8.1.280.0070.01425.92
8.1.270.0040.00420.20
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0000.00721.93
8.1.150.0040.00418.70
8.1.140.0040.00417.38
8.1.130.0040.00417.55
8.1.120.0040.00417.31
8.1.110.0000.00817.43
8.1.100.0050.00217.30
8.1.90.0070.00017.36
8.1.80.0060.00317.31
8.1.70.0000.01017.36
8.1.60.0050.00317.54
8.1.50.0030.00617.57
8.1.40.0040.00417.47
8.1.30.0040.00417.47
8.1.20.0000.00817.67
8.1.10.0000.00717.35
8.1.00.0000.00817.23
8.0.300.0030.00618.77
8.0.290.0000.00916.58
8.0.280.0030.00318.31
8.0.270.0080.00017.12
8.0.260.0030.00317.18
8.0.250.0040.00416.84
8.0.240.0030.00316.85
8.0.230.0070.00016.77
8.0.220.0020.00516.75
8.0.210.0000.00716.79
8.0.200.0030.00316.77
8.0.190.0050.00316.75
8.0.180.0040.00416.82
8.0.170.0080.00016.79
8.0.160.0070.00016.79
8.0.150.0050.00216.70
8.0.140.0040.00416.82
8.0.130.0000.00713.26
8.0.120.0050.00216.68
8.0.110.0050.00316.79
8.0.100.0050.00316.66
8.0.90.0070.00016.79
8.0.80.0090.00616.81
8.0.70.0050.00316.76
8.0.60.0040.00416.69
8.0.50.0040.00416.75
8.0.30.0080.01216.89
8.0.20.0180.00617.40
8.0.10.0040.00416.81
8.0.00.0060.01416.79
7.4.330.0030.00315.16
7.4.320.0030.00316.54
7.4.300.0030.00316.34
7.4.290.0000.00816.41
7.4.280.0030.00516.43
7.4.270.0020.00516.51
7.4.260.0000.00716.50
7.4.250.0000.00716.54
7.4.240.0030.00416.49
7.4.230.0030.00316.29
7.4.220.0060.01216.48
7.4.210.0070.01116.50
7.4.200.0030.00516.59
7.4.160.0090.00916.63
7.4.150.0090.00917.40
7.4.140.0070.01317.86
7.4.130.0130.00316.39
7.4.120.0080.01216.43
7.4.110.0130.00316.48
7.4.100.0090.00916.47
7.4.90.0070.01016.45
7.4.80.0100.00719.39
7.4.70.0130.00316.44
7.4.60.0060.00916.36
7.4.50.0040.00416.43
7.4.40.0170.00316.48
7.4.30.0040.01916.41
7.4.00.0070.00415.08
7.3.330.0020.00213.30
7.3.320.0000.00513.29
7.3.310.0000.00716.25
7.3.300.0060.00016.34
7.3.290.0070.00916.28
7.3.280.0060.01216.29
7.3.270.0070.01017.40
7.3.260.0130.01016.29
7.3.250.0090.00916.25
7.3.240.0040.01216.43
7.3.230.0140.00816.44
7.3.210.0130.00316.25
7.3.200.0100.00716.57
7.3.190.0090.01216.24
7.3.180.0100.01016.28
7.3.170.0110.00516.37
7.3.160.0100.00716.52
7.3.10.0070.00616.52
7.3.00.0090.00316.64
7.2.330.0180.00416.68
7.2.320.0060.01216.81
7.2.310.0090.00616.32
7.2.300.0060.00916.28
7.2.290.0040.01816.32
7.2.130.0070.00716.62
7.2.120.0080.00316.74
7.2.110.0040.00816.82
7.2.100.0050.00516.57
7.2.90.0070.00417.04
7.2.80.0030.00717.04
7.2.70.0030.00716.50
7.2.60.0120.00316.84
7.2.50.0070.00716.84
7.2.40.0100.00316.85
7.2.30.0060.00916.68
7.2.20.0030.01016.84
7.2.10.0030.01016.76
7.2.00.0020.01118.15
7.1.250.0040.00415.96
7.1.100.0000.00917.90
7.1.70.0090.00617.13
7.1.60.0140.01019.42
7.1.50.0070.01316.87
7.1.00.0030.07722.37
7.0.200.0100.00316.56
7.0.60.0130.07320.07
7.0.50.0070.05017.72
7.0.40.0030.08320.08
7.0.30.0270.06020.09
7.0.20.0270.05320.08
7.0.10.0030.09020.09
7.0.00.0130.08020.25
5.6.280.0000.07321.03
5.6.210.0070.04020.65
5.6.200.0070.04718.29
5.6.190.0100.08320.48
5.6.180.0530.07320.39
5.6.170.0300.06020.50
5.6.160.0070.04020.52
5.6.150.0070.07718.19
5.6.140.0100.07318.29
5.6.130.0030.08718.12
5.6.120.0130.07320.98
5.6.110.0100.08321.00
5.6.100.0130.07321.09
5.6.90.0030.04020.88
5.6.80.0070.08320.54
5.5.350.0270.04720.44
5.5.340.0070.08017.97
5.5.330.0100.08020.43
5.5.320.0200.04020.27
5.5.310.0170.06720.38
5.5.300.0100.06017.95
5.5.290.0070.06718.09
5.5.280.0070.07720.65
5.5.270.0130.07320.82
5.5.260.0000.04320.75
5.5.250.0030.08320.78
5.5.240.0030.08020.35
5.4.450.0100.06019.59
5.4.440.0900.05719.61
5.4.430.0830.05019.16
5.4.420.0770.05319.70
5.4.410.0800.05319.18
5.4.400.0700.06019.15
5.4.390.0630.05719.26
5.4.380.0670.05018.98
5.4.370.0700.06019.26
5.4.360.0900.05019.25
5.4.350.0700.06019.30
5.4.340.0800.05019.31
5.4.320.0800.05018.87
5.4.310.0830.04719.13
5.4.300.0730.05719.26
5.4.290.0630.06019.01
5.4.280.0770.05719.12
5.4.270.0930.03718.87
5.4.260.0830.05019.14
5.4.250.0800.05319.14
5.4.240.0770.05719.25
5.4.230.0830.04319.25
5.4.220.0800.05019.14
5.4.210.0700.06018.88
5.4.200.0770.05017.11
5.4.190.0770.05319.02
5.4.180.0700.04719.00
5.4.170.0770.05019.27
5.4.160.0830.04719.24
5.4.150.0800.05319.07
5.4.140.0730.05716.35
5.4.130.0800.04716.51
5.4.120.0870.04716.57
5.4.110.0770.04716.55
5.4.100.0730.05316.43
5.4.90.0800.04716.55
5.4.80.0830.04316.38
5.4.70.0770.05316.70
5.4.60.0770.04716.45
5.4.50.0570.05716.54
5.4.40.0930.06016.32
5.4.30.0630.04716.47
5.4.20.0630.05016.49
5.4.10.0730.04016.52
5.4.00.0830.04316.22
5.3.290.0600.05714.65
5.3.280.0530.06014.59
5.3.270.0670.05014.65
5.3.260.0630.05314.84
5.3.250.0700.05014.52
5.3.240.0770.05014.46
5.3.230.0670.04714.61
5.3.220.0500.06314.79
5.3.210.0700.06014.62
5.3.200.0630.05714.48
5.3.190.0770.05714.61
5.3.180.0730.05314.71
5.3.170.0600.05314.46
5.3.160.0800.04714.56
5.3.150.0700.05014.56
5.3.140.0630.05314.45
5.3.130.0730.05714.77
5.3.120.0700.04314.40
5.3.110.0670.05014.54
5.3.100.0600.05313.94
5.3.90.0630.04714.17
5.3.80.0800.06014.09
5.3.70.0630.06013.87
5.3.60.0800.05013.91
5.3.50.0830.04713.86
5.3.40.0800.05014.17
5.3.30.0800.04313.80
5.3.20.0600.05013.69
5.3.10.0730.03713.66
5.3.00.0670.04313.49
5.2.170.0600.03311.10
5.2.160.0500.04011.09
5.2.150.0470.04311.21
5.2.140.0500.04311.22
5.2.130.0500.04011.04
5.2.120.0530.03711.18
5.2.110.0530.03711.05
5.2.100.0570.03311.24
5.2.90.0670.03711.24
5.2.80.0670.04011.00
5.2.70.0700.03311.00
5.2.60.1000.05011.06
5.2.50.0630.04711.16
5.2.40.0500.03710.89
5.2.30.0470.04310.97
5.2.20.0430.04310.93
5.2.10.0630.04310.84
5.2.00.0530.03710.86
5.1.60.0500.0379.99
5.1.50.0470.0339.89
5.1.40.0430.0339.90
5.1.30.0530.03310.31
5.1.20.0470.04010.30
5.1.10.0570.02710.13
5.1.00.0470.04010.14
5.0.50.0270.0338.52
5.0.40.0200.0338.39
5.0.30.0230.0408.13
5.0.20.0300.0238.04
5.0.10.0230.0278.23
5.0.00.0200.0438.06
4.4.90.0230.0205.88
4.4.80.0230.0235.75
4.4.70.0230.0205.76
4.4.60.0200.0205.84
4.4.50.0200.0205.86
4.4.40.0170.0375.75
4.4.30.0270.0135.77
4.4.20.0230.0175.94
4.4.10.0200.0205.91
4.4.00.0230.0305.96
4.3.110.0270.0175.70
4.3.100.0170.0235.70
4.3.90.0130.0275.76
4.3.80.0230.0335.75
4.3.70.0200.0205.70
4.3.60.0130.0275.76
4.3.50.0230.0175.73
4.3.40.0200.0375.71
4.3.30.0070.0234.53
4.3.20.0070.0234.40
4.3.10.0200.0134.37
4.3.00.0000.0236.98

preferences:
48.01 ms | 401 KiB | 5 Q