3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Zend_Json { public static function encode($var) { return json_encode($var); } } $brand = null; $category = null; $type = null; /////////////////////////////////////////////////////// $atLeastOneIsSelected = array(); $atLeastOneIsSelected = array_filter(array($brand, $category, $type)); if (sizeof $atLeastOneIsSelected < 1) { echo \Zend_Json::encode(array('success' => false)); exit; }

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)
5.4.260.0030.07018.84
5.4.250.0170.07319.00
5.4.240.0200.06019.00
5.4.230.0200.06318.93
5.4.220.0230.05018.79
5.4.210.0070.05718.99
5.4.200.0170.04318.96
5.4.190.0030.05318.99
5.4.180.0130.04718.64
5.4.170.0130.07018.90
5.4.160.0070.05318.98
5.4.150.0230.04018.92
5.4.140.0170.06016.40
5.4.130.0130.04316.40
5.4.120.0100.04716.59
5.4.110.0070.05316.47
5.4.100.0130.06016.62
5.4.90.0030.06316.55
5.4.80.0070.05016.49
5.4.70.0170.06016.40
5.4.60.0070.07016.49
5.4.50.0200.05716.39
5.4.40.0130.04716.65
5.4.30.0070.04716.51
5.4.20.0070.07716.62
5.4.10.0100.04716.38
5.4.00.0130.04016.01
5.3.280.0130.05014.65
5.3.270.0170.04714.50
5.3.260.0100.05014.62
5.3.250.0000.08014.69
5.3.240.0030.05714.61
5.3.230.0130.06314.82
5.3.220.0130.06314.66
5.3.210.0070.05314.56
5.3.200.0030.05014.65
5.3.190.0070.05014.75
5.3.180.0070.05314.53
5.3.170.0100.04314.78
5.3.160.0030.06014.54
5.3.150.0070.07314.65
5.3.140.0100.05014.66
5.3.130.0070.05314.38
5.3.120.0030.05714.71
5.3.110.0130.07314.54
5.3.100.0070.04714.27
5.3.90.0100.06014.03
5.3.80.0100.06014.09
5.3.70.0100.05714.09
5.3.60.0070.06314.01
5.3.50.0070.06713.78
5.3.40.0100.05714.02
5.3.30.0100.04714.12
5.3.20.0100.06313.89
5.3.10.0030.05313.75
5.3.00.0100.04713.87
5.2.170.0100.03711.13
5.2.160.0030.04311.21
5.2.150.0070.04711.21
5.2.140.0030.04311.22
5.2.130.0030.04311.19
5.2.120.0070.03711.18
5.2.110.0070.05311.07
5.2.100.0170.03311.10
5.2.90.0030.05311.19
5.2.80.0100.05011.04
5.2.70.0070.04311.09
5.2.60.0130.03311.01
5.2.50.0030.04311.15
5.2.40.0130.04310.98
5.2.30.0100.05310.80
5.2.20.0070.05710.96
5.2.10.0030.04010.93
5.2.00.0170.04010.91
5.1.60.0070.04710.10
5.1.50.0100.04010.24
5.1.40.0170.0379.95
5.1.30.0030.03710.51
5.1.20.0130.03010.36
5.1.10.0100.04310.22
5.1.00.0070.03710.23
5.0.50.0030.0278.61
5.0.40.0000.0378.48
5.0.30.0070.0478.38
5.0.20.0030.0278.16
5.0.10.0030.0278.41
5.0.00.0030.0408.00
4.4.90.0070.0237.30
4.4.80.0030.0177.30
4.4.70.0000.0307.30
4.4.60.0030.0237.30
4.4.50.0100.0177.30
4.4.40.0030.0407.30
4.4.30.0030.0207.30
4.4.20.0030.0237.30
4.4.10.0070.0237.30
4.4.00.0030.0407.30
4.3.110.0030.0207.30
4.3.100.0030.0277.30
4.3.90.0000.0207.30
4.3.80.0030.0307.30
4.3.70.0030.0177.30
4.3.60.0000.0207.30
4.3.50.0070.0137.30
4.3.40.0070.0407.30
4.3.30.0070.0177.30
4.3.20.0030.0277.30
4.3.10.0030.0277.30
4.3.00.0030.0207.80

preferences:
147.52 ms | 1394 KiB | 7 Q