3v4l.org

run code in 300+ PHP versions simultaneously
<?php $NUM = 10000000; $singleQuotedStringCode = "<?php '" . str_repeat('x', $NUM) . "';"; $doubleQuotedStringCode = '<?php "' . str_repeat('x', $NUM) . '";'; $startTime = microtime(true); token_get_all($singleQuotedStringCode); $endTime = microtime(true); echo 'Single quotes: ', $endTime - $startTime, ' seconds', "\n"; $startTime = microtime(true); token_get_all($doubleQuotedStringCode); $endTime = microtime(true); echo 'Double quotes: ', $endTime - $startTime, ' seconds', "\n";

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)
7.4.00.0730.05762.47
7.3.120.0620.06962.67
7.3.110.0800.08062.68
7.3.100.0640.06162.06
7.3.90.0700.06062.34
7.3.80.0600.06362.34
7.3.70.0590.06662.45
7.3.60.0780.05262.29
7.3.50.0520.06662.38
7.3.40.0600.05762.26
7.3.30.0690.05362.44
7.3.20.0520.04864.06
7.3.10.0550.07963.99
7.3.00.0380.06664.09
7.2.250.0360.08662.93
7.2.240.0820.09262.53
7.2.230.0470.07362.66
7.2.220.0690.07262.35
7.2.210.0540.06762.43
7.2.200.0610.06162.33
7.2.190.0510.06862.78
7.2.180.0640.06862.86
7.2.170.0590.05962.59
7.2.00.0030.06967.14
7.1.330.0550.05963.30
7.1.320.0590.05563.29
7.1.310.0630.08663.16
7.1.300.0570.04863.43
7.1.290.0640.05763.47
7.1.280.0540.05763.41
7.1.270.0370.09063.57
7.1.260.0470.06163.38
7.1.70.1680.06064.75
7.1.60.0230.09064.95
7.1.50.1140.07264.82
7.1.00.0100.16369.95
7.0.200.4110.06362.30
7.0.140.0200.15069.74
7.0.60.0400.13767.52
7.0.50.0400.09065.49
7.0.40.0470.10367.68
7.0.30.1400.07767.63
7.0.20.1400.10367.54
7.0.10.0300.09367.66
7.0.00.0200.14367.46
5.6.280.0200.18068.92
5.6.210.0400.14768.36
5.6.200.0500.13365.77
5.6.190.0270.14068.10
5.6.182.3200.11767.98
5.6.170.1530.08768.07
5.6.160.0370.13368.02
5.6.150.0400.12065.83
5.6.140.0300.12065.80
5.6.130.0370.09065.84
5.6.120.0430.11768.67
5.6.110.0570.14768.69
5.6.100.0200.17068.66
5.6.90.0430.16068.65
5.6.80.0230.18068.10
5.5.350.0200.16067.99
5.5.340.0430.13765.54
5.5.330.0330.15767.82
5.5.320.1700.10067.85
5.5.310.1270.10367.82
5.5.300.0370.15065.49
5.5.290.0500.12365.54
5.5.280.0430.15368.46
5.5.270.0430.14068.44
5.5.260.0400.16368.33
5.5.250.0370.12768.30
5.5.240.1400.13068.05
5.4.450.1900.13367.20
5.4.440.1700.11367.20
5.4.430.1070.11066.88
5.4.420.1600.11366.97
5.4.410.1770.12367.04
5.4.400.2330.09766.44
5.4.390.3230.09766.66
5.4.380.3070.20366.27
5.4.370.4070.20766.18
5.4.360.3200.17066.19
5.4.350.3730.21766.38
5.4.340.2630.16366.38
5.4.320.0320.11160.15
5.4.310.0320.10760.14
5.4.300.0360.10860.15
5.4.290.0300.10960.14
5.4.280.0420.09660.04
5.4.270.0290.10760.04
5.4.260.0230.11760.04
5.4.250.0290.11060.04
5.4.240.0330.10960.04
5.4.230.0350.12660.04
5.4.220.0390.10060.04
5.4.210.0350.10360.03
5.4.200.0330.10560.03
5.4.190.0370.10960.03
5.4.180.0340.10360.03
5.4.170.0340.10460.04
5.4.160.0330.10360.03
5.4.150.0310.10760.03
5.4.140.0240.10759.76
5.4.130.0350.10359.70
5.4.120.0350.09659.66
5.4.110.0340.11859.65
5.4.100.0340.10759.66
5.4.90.0220.10559.66
5.4.80.0300.09759.66
5.4.70.0310.10659.65
5.4.60.0270.09759.65
5.4.50.0330.09859.65
5.4.40.0220.10459.69
5.4.30.0330.10159.64
5.4.20.0310.09659.64
5.4.10.0280.10059.63
5.4.00.0360.09359.13
5.3.290.0350.10460.36
5.3.280.0310.10760.29
5.3.270.0340.10460.30
5.3.260.0390.12060.30
5.3.250.0330.10760.30
5.3.240.0290.10760.30
5.3.230.0250.11260.29
5.3.220.0360.09460.26
5.3.210.0340.09860.26
5.3.200.0330.10660.26
5.3.190.0300.10360.26
5.3.180.0330.10960.25
5.3.170.0250.10660.25
5.3.160.0350.10360.25
5.3.150.0300.10460.25
5.3.140.0310.10060.25
5.3.130.0280.10460.24
5.3.120.0300.10360.24
5.3.110.0370.10260.24
5.3.100.0350.09659.73
5.3.90.0260.11759.80
5.3.80.0360.09459.70
5.3.70.0350.10359.70
5.3.60.0350.09559.69
5.3.50.0340.09859.64
5.3.40.0380.09759.63
5.3.30.0310.11059.60
5.3.20.0270.10859.38
5.3.10.0230.10359.34
5.3.00.0290.09959.32
5.2.170.0240.18756.92
5.2.160.0370.18356.82
5.2.150.0270.18756.81
5.2.140.0340.18356.81
5.2.130.0350.18256.77
5.2.120.0260.18856.77
5.2.110.0320.19356.77
5.2.100.0330.18956.77
5.2.90.0350.19156.77
5.2.80.0320.18956.76
5.2.70.0310.18656.76
5.2.60.0330.18756.72
5.2.50.0320.18756.69
5.2.40.0300.19656.67
5.2.30.0320.18656.64
5.2.20.0390.21456.63
5.2.10.0320.23556.55
5.2.00.0280.19456.41
5.1.60.0280.19255.57
5.1.50.0360.18355.56
5.1.40.0320.18855.55
5.1.30.0320.19055.89
5.1.20.0300.18955.91
5.1.10.0320.19455.64
5.1.00.0300.19455.64
5.0.50.0310.20854.12
5.0.40.0320.21054.11
5.0.30.0340.22553.79
5.0.20.0270.20753.76
5.0.10.0370.19753.87
5.0.00.0320.21653.73
4.4.90.0320.18152.29
4.4.80.0250.18452.14
4.4.70.0280.18152.27
4.4.60.0370.17252.13
4.4.50.0350.17652.16
4.4.40.0270.20152.15
4.4.30.0290.17852.14
4.4.20.0280.18752.21
4.4.10.0290.18352.21
4.4.00.0280.18652.18
4.3.110.0290.17652.21
4.3.100.0230.18352.20
4.3.90.0250.19752.18
4.3.80.0300.19252.19
4.3.70.0280.17852.18
4.3.60.0250.17852.19
4.3.50.0300.18052.18
4.3.40.0300.18552.14
4.3.30.0280.17650.95
4.3.20.0270.19150.92
4.3.10.0310.21150.88
4.3.00.1770.16352.07

preferences:
32.72 ms | 400 KiB | 5 Q