3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_filter(['a' => true, 'b' => false, 'c' => true]);

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.270.0100.04718.98
5.4.260.0170.07019.13
5.4.250.0100.06319.08
5.4.240.0030.08018.85
5.4.230.0200.06318.99
5.4.220.0030.06019.20
5.4.210.0130.07319.31
5.4.200.0130.07019.14
5.4.190.0070.08719.23
5.4.180.0130.05319.14
5.4.170.0170.04318.86
5.4.160.0100.06319.14
5.4.150.0070.05019.11
5.4.140.0100.08016.34
5.4.130.0030.06316.45
5.4.120.0100.06316.30
5.4.110.0000.06316.46
5.4.100.0170.05316.56
5.4.90.0200.04716.40
5.4.80.0070.06316.55
5.4.70.0200.06316.53
5.4.60.0070.05016.25
5.4.50.0130.06316.53
5.4.40.0130.07016.53
5.4.30.0130.04016.52
5.4.20.0000.05316.55
5.4.10.0000.06316.31
5.4.00.0100.04715.84
5.3.280.0100.06314.50
5.3.270.0170.03714.65
5.3.260.0200.05714.65
5.3.250.0200.03314.52
5.3.240.0130.04014.48
5.3.230.0070.08014.53
5.3.220.0030.06014.41
5.3.210.0100.04314.43
5.3.200.0070.07014.52
5.3.190.0130.05314.43
5.3.180.0070.05014.40
5.3.170.0170.07014.38
5.3.160.0130.05014.39
5.3.150.0130.04714.51
5.3.140.0130.07714.41
5.3.130.0070.07014.50
5.3.120.0130.07714.34
5.3.110.0130.04714.45
5.3.100.0070.07313.87
5.3.90.0030.05313.87
5.3.80.0070.07713.79
5.3.70.0100.07313.86
5.3.60.0030.06014.04
5.3.50.0070.07313.72
5.3.40.0000.07713.80
5.3.30.0100.07013.77
5.3.20.0100.04313.64
5.3.10.0170.03713.74
5.3.00.0070.07313.49
5.2.170.0000.06712.03
5.2.160.0030.06312.03
5.2.150.0000.06712.03
5.2.140.0100.05712.03
5.2.130.0100.03312.03
5.2.120.0130.04712.03
5.2.110.0100.05712.03
5.2.100.0030.06012.03
5.2.90.0030.06312.03
5.2.80.0070.06312.03
5.2.70.0070.04312.03
5.2.60.0030.06312.03
5.2.50.0100.06312.03
5.2.40.0070.06012.03
5.2.30.0030.06312.03
5.2.20.0100.04312.03
5.2.10.0070.05012.03
5.2.00.0130.05012.03
5.1.60.0070.05312.03
5.1.50.0100.05312.03
5.1.40.0070.04312.03
5.1.30.0000.04012.03
5.1.20.0100.05012.03
5.1.10.0000.04312.03
5.1.00.0000.04712.03
5.0.50.0100.03712.03
5.0.40.0030.02712.03
5.0.30.0000.05312.03
5.0.20.0000.02012.03
5.0.10.0000.03712.03
5.0.00.0030.04312.03
4.4.90.0030.03312.03
4.4.80.0000.02012.03
4.4.70.0030.03312.03
4.4.60.0030.03712.03
4.4.50.0070.02712.03
4.4.40.0070.05312.03
4.4.30.0000.03012.03
4.4.20.0000.02012.03
4.4.10.0030.02012.03
4.4.00.0000.03012.03
4.3.110.0030.03312.03
4.3.100.0000.03312.03
4.3.90.0070.02012.03
4.3.80.0000.04312.03
4.3.70.0000.02312.03
4.3.60.0030.02312.03
4.3.50.0000.03712.03
4.3.40.0070.02712.03
4.3.30.0000.03312.03
4.3.20.0030.03712.03
4.3.10.0030.02312.03
4.3.00.0030.02312.03

preferences:
143.51 ms | 1394 KiB | 7 Q