3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $array = array("1" => "PHP code tester Sandbox Online", "foo" => "bar", 5 , 5 => 89009, "case" => "Random Stuff", "PHP Version" => phpversion() ); $a = array_filter( $array, function($e){ return $e=='1'; }, ARRAY_FILTER_USE_BOTH); var_dump($a);

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)
7.2.00.0070.00419.32
7.1.100.0030.01017.68
7.1.70.0030.01017.19
7.1.60.0080.01519.50
7.1.50.0140.01016.95
7.1.00.0130.06722.54
7.0.200.0260.00016.66
7.0.140.0000.04321.95
7.0.60.0130.06020.02
7.0.50.0030.08717.83
7.0.40.0130.08020.05
7.0.30.0330.08020.23
7.0.20.0330.08320.24
7.0.10.0030.09020.21
7.0.00.0030.06020.08
5.6.280.0030.07320.81
5.6.210.0030.06720.72
5.6.200.0000.04718.16
5.6.190.0100.06320.61
5.6.180.0270.07720.34
5.6.170.0170.04020.46
5.6.160.0070.08320.59
5.6.150.0130.07318.16
5.6.140.0070.08318.29
5.6.130.0070.04718.21
5.6.120.0030.08721.05
5.6.110.0030.08721.01
5.6.100.0100.08021.02
5.6.90.0130.07020.96
5.6.80.0100.07320.29
5.6.70.3330.03020.40
5.5.350.0200.08020.34
5.5.340.0030.04017.94
5.5.330.0070.09020.37
5.5.320.0330.06020.37
5.5.310.0130.05020.31
5.5.300.0070.08017.98
5.5.290.0030.08717.98
5.5.280.0100.07320.89
5.5.270.0030.09020.86
5.5.260.0130.04020.88
5.5.250.0030.04020.58
5.5.240.0330.06720.07
5.4.450.0630.05319.57
5.4.440.0870.06319.16
5.4.430.0170.05319.58
5.4.420.0330.04319.43
5.4.410.1070.04719.16
5.4.400.0470.06018.82
5.4.390.0300.05718.59
5.4.380.0330.05018.72
5.4.370.0370.06318.72
5.4.360.0270.06018.74
5.4.350.0400.05718.80
5.4.340.0400.05018.54
5.4.320.0300.06718.84
5.4.310.0330.05318.72
5.4.300.0330.05018.69
5.4.290.0370.05018.47
5.4.280.0230.06018.75
5.4.270.0370.05318.83
5.4.260.0300.05718.50
5.4.250.0300.06018.76
5.4.240.0400.06018.57
5.4.230.0370.04318.55
5.4.220.0330.06318.76
5.4.210.0270.05718.74
5.4.200.0300.05716.61
5.4.190.0330.06018.75
5.4.180.0270.05318.53
5.4.170.0230.06018.82
5.4.160.0300.05318.73
5.4.150.0230.06318.60
5.4.140.0270.06016.30
5.4.130.0300.05716.29
5.4.120.0470.04716.20
5.4.110.0330.05016.43
5.4.100.0400.04316.32
5.4.90.0400.05716.28
5.4.80.0400.04716.40
5.4.70.0330.05016.23
5.4.60.0400.04316.24
5.4.50.0300.05016.24
5.4.40.0270.06016.27
5.4.30.0270.05316.11
5.4.20.0270.05316.16
5.4.10.0400.04016.18
5.4.00.0230.06015.74
5.3.290.0300.05314.68
5.3.280.0370.05314.77
5.3.270.0430.04314.63
5.3.260.0370.05314.73
5.3.250.0300.05014.78
5.3.240.0400.04314.64
5.3.230.0300.05014.63
5.3.220.0370.07014.59
5.3.210.0400.05314.57
5.3.200.0430.04314.59
5.3.190.0230.06014.60
5.3.180.0370.05314.59
5.3.170.0400.04714.58
5.3.160.0230.05714.56
5.3.150.0370.05014.59
5.3.140.0270.05314.55
5.3.130.0270.05714.56
5.3.120.0300.05314.52
5.3.110.0330.05314.57
5.3.100.0300.05314.03
5.3.90.0270.05314.11
5.3.80.0370.04714.22
5.3.70.0370.04714.12
5.3.60.0230.06314.02
5.3.50.0370.04313.98
5.3.40.0270.06013.95
5.3.30.0300.05013.93
5.3.20.0270.05313.70
5.3.10.0330.04713.79
5.3.00.0270.05313.63
5.2.170.0300.04011.18
5.2.160.0270.04011.09
5.2.150.0300.04011.12
5.2.140.0230.04711.07
5.2.130.0230.04311.14
5.2.120.0200.04311.09
5.2.110.0230.04011.10
5.2.100.0230.04311.07
5.2.90.0170.04311.05
5.2.80.0300.03311.10
5.2.70.0230.04311.08
5.2.60.0200.04711.11
5.2.50.0230.04011.01
5.2.40.0170.04311.00
5.2.30.0130.04710.89
5.2.20.0270.03311.02
5.2.10.0200.04310.89
5.2.00.0170.04310.82
5.1.60.0170.03710.04
5.1.50.0200.0339.97
5.1.40.0200.0339.95
5.1.30.0170.03710.38
5.1.20.0170.03710.41
5.1.10.0230.03010.09
5.1.00.0170.04010.04
5.0.50.0130.0308.61
5.0.40.0070.0308.38
5.0.30.0100.0478.19
5.0.20.0100.0278.21
5.0.10.0070.0338.25
5.0.00.0170.0508.34
4.4.90.0100.0236.20
4.4.80.0170.0176.20
4.4.70.0070.0236.20
4.4.60.0130.0206.20
4.4.50.0070.0236.20
4.4.40.0100.0336.20
4.4.30.0070.0276.20
4.4.20.0100.0206.20
4.4.10.0030.0276.20
4.4.00.0100.0336.20
4.3.110.0070.0306.20
4.3.100.0130.0206.20
4.3.90.0130.0176.20
4.3.80.0070.0376.20
4.3.70.0130.0176.20
4.3.60.0070.0236.20
4.3.50.0070.0236.20
4.3.40.0100.0336.20
4.3.30.0030.0236.20
4.3.20.0130.0136.20
4.3.10.0030.0236.20
4.3.00.0170.0136.68

preferences:
30.84 ms | 400 KiB | 5 Q