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_KEY ); 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.4.00.0090.00914.83
7.3.120.0100.00514.91
7.3.110.0100.00614.71
7.3.100.0070.00714.90
7.3.90.0030.01414.84
7.3.80.0100.00714.82
7.3.70.0060.00714.58
7.3.60.0070.00914.80
7.3.50.0070.00714.74
7.3.40.0090.00414.49
7.3.30.0100.00314.79
7.3.20.0070.00816.53
7.3.10.0050.00916.32
7.3.00.0090.00616.57
7.2.250.0030.01415.21
7.2.240.0030.01514.90
7.2.230.0100.00615.05
7.2.220.0100.00615.16
7.2.210.0050.01115.01
7.2.200.0050.00914.87
7.2.190.0080.01014.95
7.2.180.0080.00614.95
7.2.170.0030.01015.07
7.2.130.0060.00616.38
7.2.120.0100.00616.33
7.2.110.0000.01216.58
7.2.100.0100.00616.34
7.2.90.0070.00316.86
7.2.80.0120.01716.43
7.2.70.0240.00916.49
7.2.60.0130.01016.59
7.2.50.0360.00716.57
7.2.40.0230.00816.71
7.2.30.0070.01316.53
7.2.20.0130.01316.41
7.2.10.0170.00716.80
7.2.00.0070.00918.31
7.1.330.0020.01415.67
7.1.320.0050.00715.79
7.1.310.0050.01015.81
7.1.300.0070.01015.57
7.1.290.0030.00915.71
7.1.280.0100.00515.75
7.1.270.0080.00315.76
7.1.260.0080.00415.91
7.1.250.0040.00415.12
7.1.100.0030.00917.87
7.1.70.0040.01117.13
7.1.60.0030.02219.50
7.1.50.0060.01816.88
7.1.00.0000.08022.45
7.0.200.0200.01016.70
7.0.140.0030.07021.95
7.0.100.0030.09019.87
7.0.90.0000.04719.87
7.0.80.0030.04719.91
7.0.70.0030.04019.95
7.0.60.0070.03719.93
7.0.50.0030.04020.38
7.0.40.0030.05320.05
7.0.30.0130.09719.96
7.0.20.0130.03320.10
7.0.10.0070.07720.17
7.0.00.0070.04720.09
5.6.250.0130.07320.61
5.6.240.0070.04020.59
5.6.230.0070.06020.74
5.6.220.0030.06320.61
5.6.210.0030.07320.57
5.6.200.0030.07321.00
5.6.190.0000.04321.18
5.6.180.0070.08021.18
5.6.170.0100.05721.14
5.6.160.0100.06720.95
5.6.150.0070.05021.05
5.6.140.0100.03321.06
5.6.130.0030.07321.10
5.6.120.0100.06320.94
5.6.110.0000.08320.96
5.6.100.0000.05320.95
5.6.90.0070.08720.92
5.6.80.0100.04320.46
5.6.70.0170.02720.37
5.6.60.0100.07720.42
5.6.50.0030.05720.46
5.6.40.0130.03020.29
5.6.30.0070.08020.35
5.6.20.0000.07720.53
5.6.10.0030.04020.36
5.6.00.0070.08020.39
5.5.380.0030.04020.34
5.5.370.0070.03720.35
5.5.360.0030.04720.49
5.5.350.0070.08320.47
5.5.340.0030.04020.63
5.5.330.0070.07020.63
5.5.320.0030.06320.94
5.5.310.0000.08020.78
5.5.300.0030.05020.88
5.5.290.0030.07320.73
5.5.280.0100.06720.73
5.5.270.0070.04320.82
5.5.260.0070.05320.88
5.5.250.0070.04020.68
5.5.240.0100.03320.27
5.5.230.0070.06320.14
5.5.220.0170.02320.30
5.5.210.0070.09020.02
5.5.200.0030.08320.12
5.5.190.0070.05320.09
5.5.180.0030.06720.24
5.5.160.0000.04320.10
5.5.150.0030.06720.09
5.5.140.0000.04320.15
5.5.130.0030.08720.10
5.5.120.0000.04020.16
5.5.110.0070.07320.13
5.5.100.0030.04019.98
5.5.90.0000.04020.07
5.5.80.0030.07020.11
5.5.70.0000.06320.04
5.5.60.0000.04020.04
5.5.50.0100.06319.93
5.5.40.0100.06720.06
5.5.30.0030.05720.05
5.5.20.0070.06019.96
5.5.10.0070.04020.13
5.5.00.0130.07720.05
5.4.450.0130.06019.46
5.4.440.0030.08019.55
5.4.430.0100.06719.46
5.4.420.0030.07019.27
5.4.410.0070.03719.38
5.4.400.0000.04019.17
5.4.390.0030.04319.08
5.4.380.0100.04719.13
5.4.370.0070.04719.13
5.4.360.0100.03319.09
5.4.350.0030.03719.16
5.4.340.0030.05018.90
5.4.320.0000.04019.24
5.4.310.0030.03718.85
5.4.300.0100.06018.87
5.4.290.0030.05719.13
5.4.280.0100.05318.90
5.4.270.0070.03318.85
5.4.260.0030.06719.12
5.4.250.0030.06019.11
5.4.240.0070.03319.13
5.4.230.0000.06019.12
5.4.220.0000.06019.21
5.4.210.0100.06019.03
5.4.200.0030.07719.14
5.4.190.0100.07019.13
5.4.180.0070.05719.12
5.4.170.0030.07318.89
5.4.160.0030.04319.02
5.4.150.0070.03318.86
5.4.140.0030.07716.20
5.4.130.0000.04016.13
5.4.120.0070.03016.40
5.4.110.0130.06716.47
5.4.100.0070.03316.34
5.4.90.0100.06016.49
5.4.80.0100.03016.50
5.4.70.0030.06316.26
5.4.60.0070.06316.32
5.4.50.0070.03016.46
5.4.40.0100.06316.50
5.4.30.0170.04016.48
5.4.20.0100.05716.44
5.4.10.0030.03316.47
5.4.00.0030.07315.85
5.3.290.0000.04014.65
5.3.280.0070.07014.66
5.3.270.0030.07014.54
5.3.260.0070.07314.71
5.3.250.0030.07714.61
5.3.240.0030.07714.66
5.3.230.0100.07014.65
5.3.220.0070.07714.54
5.3.210.0030.06714.57
5.3.200.0170.07714.50
5.3.190.0070.03714.68
5.3.180.0000.04714.52
5.3.170.0100.07014.55
5.3.160.0030.05014.52
5.3.150.0100.05314.67
5.3.140.0070.07014.49
5.3.130.0100.06314.68
5.3.120.0130.07014.53
5.3.110.0130.07314.50
5.3.100.0000.07713.98
5.3.90.0000.03714.14
5.3.80.0100.06714.08
5.3.70.0100.04714.13
5.3.60.0100.04714.13
5.3.50.0070.07014.01
5.3.40.0070.07313.88
5.3.30.0030.06313.83
5.3.20.0100.03313.80
5.3.10.0030.05013.75
5.3.00.0000.03713.76
5.2.170.0030.02711.02
5.2.160.0070.05711.02
5.2.150.0170.04011.06
5.2.140.0030.03011.20
5.2.130.0000.03011.02
5.2.120.0070.02311.17
5.2.110.0030.03311.16
5.2.100.0030.05011.15
5.2.90.0000.03011.13
5.2.80.0000.06011.02
5.2.70.0030.03711.13
5.2.60.0030.06011.02
5.2.50.0030.06311.02
5.2.40.0030.06011.02
5.2.30.0070.06011.02
5.2.20.0000.05011.02
5.2.10.0070.04711.02
5.2.00.0000.03011.02
5.1.60.0000.05011.02
5.1.50.0030.05011.02
5.1.40.0030.02711.02
5.1.30.0030.04711.02
5.1.20.0030.04311.02
5.1.10.0030.02311.02
5.1.00.0000.05011.02
5.0.50.0030.01711.02
5.0.40.0030.03711.02
5.0.30.0000.03711.02
5.0.20.0000.03711.02
5.0.10.0030.03311.02
5.0.00.0100.05711.02
4.4.90.0030.03311.02
4.4.80.0030.03711.02
4.4.70.0000.03711.02
4.4.60.0030.03311.02
4.4.50.0000.01711.02
4.4.40.0030.02711.02
4.4.30.0000.02011.02
4.4.20.0000.02311.02
4.4.10.0100.03011.02
4.4.00.0000.03711.02
4.3.110.0000.02011.02
4.3.100.0000.01711.02
4.3.90.0000.03711.02
4.3.80.0030.02011.02
4.3.70.0030.02311.02
4.3.60.0000.01311.02
4.3.50.0030.03011.02
4.3.40.0000.03711.02
4.3.30.0000.03311.02
4.3.20.0000.02011.02
4.3.10.0000.01311.02
4.3.00.0070.03011.02

preferences:
26.38 ms | 400 KiB | 5 Q