3v4l.org

run code in 300+ PHP versions simultaneously
<?php class query_parser { function __construct($query_string) { print $query_string; } $filter = "this is where we would have the filter information"; } $qp = new query_parser('filter={age_group:[1,2,3]}'); echo $qp->$filter; ?>

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.5.120.0100.07717.32
5.5.110.0030.05717.29
5.5.100.0100.05717.25
5.5.90.0100.07317.21
5.5.80.0130.06717.27
5.5.70.0030.08317.33
5.5.60.0030.08317.20
5.5.50.0130.07717.21
5.5.40.0070.04317.26
5.5.30.0070.07717.23
5.5.20.0070.06717.20
5.5.10.0000.07317.27
5.5.00.0100.07017.30
5.4.280.0100.07019.01
5.4.270.0030.04719.01
5.4.260.0030.08319.10
5.4.250.0170.05319.09
5.4.240.0100.08019.14
5.4.230.0100.07319.13
5.4.220.0130.07318.98
5.4.210.0070.04319.02
5.4.200.0170.06319.09
5.4.190.0170.07019.09
5.4.180.0070.08019.09
5.4.170.0030.07319.04
5.4.160.0030.07019.08
5.4.150.0200.06719.04
5.4.140.0030.08016.31
5.4.130.0030.08316.42
5.4.120.0170.05316.39
5.4.110.0030.07016.59
5.4.100.0170.04316.48
5.4.90.0030.07316.38
5.4.80.0100.06716.39
5.4.70.0100.07316.45
5.4.60.0030.07316.38
5.4.50.0130.06716.41
5.4.40.0000.07716.43
5.4.30.0070.07316.29
5.4.20.0070.07316.43
5.4.10.0100.04316.29
5.4.00.0070.07315.85
5.3.280.0030.05014.60
5.3.270.0100.05014.66
5.3.260.0030.07014.61
5.3.250.0100.07014.63
5.3.240.0100.06014.64
5.3.230.0070.08014.67
5.3.220.0030.04314.52
5.3.210.0070.04314.56
5.3.200.0130.05714.53
5.3.190.0100.03314.61
5.3.180.0070.07714.57
5.3.170.0100.04714.55
5.3.160.0000.08014.60
5.3.150.0000.05314.61
5.3.140.0130.07314.51
5.3.130.0030.05014.61
5.3.120.0030.06014.54
5.3.110.0130.06714.60
5.3.100.0100.05714.05
5.3.90.0070.03713.97
5.3.80.0130.06714.02
5.3.70.0070.06314.06
5.3.60.0030.06014.04
5.3.50.0030.08013.95
5.3.40.0100.05713.99
5.3.30.0030.08013.91
5.3.20.0100.03313.74
5.3.10.0000.04313.54
5.3.00.0030.04313.69

preferences:
132.05 ms | 1398 KiB | 7 Q