3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function (string $bar) { if (is_trusted($bar)) { echo "it's trusted!\n"; } else { echo "it can't be trusted!\n"; } }; $baz = trim(' literal string that gets manipulated '); $foo('literal string not manipulated'); $foo($baz);

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)
8.5.30.0100.00719.38
8.5.20.0120.00619.70
8.5.10.0100.00816.86
8.5.00.0100.01120.30
8.4.180.0140.01319.84
8.4.170.0130.00921.98
8.4.160.0140.01221.88
8.4.150.0060.00616.94
8.4.140.0140.00817.83
8.4.130.0140.00918.97
8.4.120.0060.00219.63
8.4.110.0130.00824.01
8.4.100.0110.01018.00
8.4.90.0070.00520.64
8.4.80.0110.00718.89
8.4.70.0090.00619.09
8.4.60.0070.00420.43
8.4.50.0140.00718.57
8.4.40.0070.00319.56
8.4.30.0160.00720.29
8.4.20.0180.00318.66
8.4.10.0040.00418.03
8.3.300.0100.01118.57
8.3.290.0120.00920.71
8.3.280.0110.01018.33
8.3.270.0100.00916.70
8.3.260.0100.00916.54
8.3.250.0090.00916.61
8.3.240.0120.00716.62
8.3.230.0060.00616.86
8.3.220.0120.00618.85
8.3.210.0120.00816.92
8.3.200.0110.00516.78
8.3.190.0050.01217.23
8.3.180.0060.01218.71
8.3.170.0160.00317.07
8.3.160.0090.00918.50
8.3.150.0150.00316.60
8.3.140.0110.00716.67
8.3.130.0030.00618.53
8.3.120.0120.00319.05
8.3.110.0030.00520.94
8.3.100.0040.01216.71
8.3.90.0040.00426.77
8.3.80.0000.00816.75
8.3.70.0100.01016.63
8.3.60.0150.00418.43
8.3.50.0100.00318.00
8.3.40.0140.00019.17
8.3.30.0090.00918.55
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.300.0130.00820.41
8.2.290.0060.00416.95
8.2.280.0050.00920.30
8.2.270.0090.00316.62
8.2.260.0120.00617.05
8.2.250.0120.00318.45
8.2.240.0060.00316.95
8.2.230.0110.00622.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0060.00316.63
8.2.190.0040.01116.58
8.2.180.0090.01225.92
8.2.170.0090.00619.09
8.2.160.0100.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00722.01
8.2.100.0050.00520.28
8.1.340.0120.00720.23
8.1.330.0160.00416.38
8.1.320.0090.01016.06
8.1.310.0040.00418.24
8.1.300.0090.00918.11
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.02
8.1.230.0000.01019.01

preferences:
31.19 ms | 860 KiB | 5 Q