3v4l.org

run code in 300+ PHP versions simultaneously
<?php function helloWithStyle( $font, $size ) { echo “ < p style=\”font-family: $font; font-size: {$size}em;\” > Hello, world! < /p > ”; } helloWithStyle( “Helvetica”, 2 );

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.350.0200.04718.98
5.4.340.0230.06318.98
5.4.320.0530.04719.32
5.4.310.0500.06019.16
5.4.300.0230.03318.95
5.4.290.0200.06019.24
5.4.280.0400.04318.88
5.4.270.0200.04019.16
5.4.260.0270.03319.00
5.4.250.0230.04718.99
5.4.240.0230.04718.86
5.4.230.0570.06719.03
5.4.220.0600.06719.09
5.4.210.0500.07318.98
5.4.200.0530.07319.14
5.4.190.0430.06719.07
5.4.180.0600.06319.30
5.4.170.0530.06019.12
5.4.160.0330.06019.20
5.4.150.0670.03718.97
5.4.140.0200.03716.36
5.4.130.0500.07016.39
5.4.120.0600.05316.33
5.4.110.0270.05716.58
5.4.100.0730.05716.25
5.4.90.0300.03316.45
5.4.80.0230.04316.58
5.4.70.0230.06016.44
5.4.60.0800.05316.52
5.4.50.0600.05316.56
5.4.40.0530.06016.32
5.4.30.0230.04316.53
5.4.20.0500.07016.53
5.4.10.0300.04016.52
5.4.00.0530.06315.94
5.3.290.0300.04314.89
5.3.280.0570.06314.58
5.3.270.0270.03714.62
5.3.260.0230.03714.58
5.3.250.0330.02714.66
5.3.240.0430.05314.61
5.3.230.0270.06714.51
5.3.220.0230.05714.73
5.3.210.0200.03714.56
5.3.200.0230.03314.57
5.3.190.0230.04314.54
5.3.180.0130.04314.65
5.3.170.0270.04714.68
5.3.160.0100.04714.65
5.3.150.0530.05714.65
5.3.140.0130.04314.66
5.3.130.0170.04014.70
5.3.120.0200.04314.46
5.3.110.0200.04014.52
5.3.100.0230.04014.27
5.3.90.0170.04014.03
5.3.80.0170.04314.10
5.3.70.0200.03713.94
5.3.60.0200.03314.06
5.3.50.0200.03713.88
5.3.40.0270.06313.92
5.3.30.0270.03713.80
5.3.20.0270.04313.70
5.3.10.0200.04013.71
5.3.00.0170.04713.86
5.2.170.0270.06011.11
5.2.160.0230.04011.23
5.2.150.0230.03011.05
5.2.140.0170.03711.04
5.2.130.0170.02711.02
5.2.120.0170.02711.01
5.2.110.0200.02711.32
5.2.100.0130.03011.08
5.2.90.0200.02711.19
5.2.80.0130.03011.00
5.2.70.0170.03711.02
5.2.60.0070.04310.99
5.2.50.0000.03711.03
5.2.40.0070.03011.07
5.2.30.0000.03011.20
5.2.20.1300.03311.04
5.2.10.1530.03710.78
5.2.00.1370.02710.63
5.1.60.1300.02710.07
5.1.50.1330.02010.04
5.1.40.1270.02710.03
5.1.30.1500.02710.46
5.1.20.1530.03310.43
5.1.10.1630.0309.97
5.1.00.1300.03010.16
5.0.50.0700.0238.54
5.0.40.0700.0138.54
5.0.30.0700.0278.54
5.0.20.0670.0178.54
5.0.10.0630.0208.54
5.0.00.0700.0308.54
4.4.90.0670.0178.54
4.4.80.0770.0208.54
4.4.70.0700.0138.54
4.4.60.0670.0178.54
4.4.50.0870.0208.54
4.4.40.0630.0238.54
4.4.30.0770.0278.54
4.4.20.0600.0178.54
4.4.10.0670.0238.54
4.4.00.0730.0308.54
4.3.110.0770.0278.54
4.3.100.0630.0178.54
4.3.90.0330.0178.54
4.3.80.0670.0308.54
4.3.70.0730.0208.54
4.3.60.0670.0208.54
4.3.50.0630.0138.54
4.3.40.0730.0278.54
4.3.30.0400.0138.54
4.3.20.0400.0278.54
4.3.10.0400.0278.54
4.3.00.0500.0178.54

preferences:
145.54 ms | 1394 KiB | 7 Q