3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<'EOD' Example of string spanning multiple lines using nowdoc syntax. EOD; /* More complex example, with variables. */ class foo { public $foo; public $bar; function foo() { $this->foo = 'Foo'; $this->bar = array('Bar1', 'Bar2', 'Bar3'); } } $foo = new foo(); $name = 'MyName'; echo <<<'EOT' My name is "$name". I am printing some $foo->foo. Now, I am printing some {$foo->bar[1]}. This should not print a capital 'A': \x41 EOT; ?>

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.3.60.0100.01016.75
8.3.50.0260.00922.05
8.3.40.0090.00918.88
8.3.30.0120.00918.59
8.3.20.0040.00420.20
8.3.10.0060.00323.45
8.3.00.0030.00619.25
8.2.180.0110.01116.88
8.2.170.0080.00822.96
8.2.160.0070.01020.44
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0090.00017.50
8.2.110.0000.01222.08
8.2.100.0040.00818.04
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0000.00821.14
8.2.30.0000.00820.70
8.2.20.0040.00417.54
8.2.10.0000.00818.11
8.2.00.0000.00818.03
8.1.280.0090.01225.92
8.1.270.0080.00023.82
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00322.58
8.1.230.0040.00717.79
8.1.220.0000.00817.80
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.95
8.1.160.0040.00421.94
8.1.150.0030.00618.82
8.1.140.0000.00819.46
8.1.130.0030.00317.68
8.1.120.0040.00417.45
8.1.110.0000.00717.31
8.1.100.0070.00017.42
8.1.90.0060.00317.27
8.1.80.0040.00417.43
8.1.70.0080.00017.42
8.1.60.0030.00617.49
8.1.50.0090.00017.41
8.1.40.0040.00417.42
8.1.30.0080.00017.46
8.1.20.0080.00017.57
8.1.10.0000.00817.58
8.1.00.0070.00017.53
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.35
8.0.270.0070.00017.17
8.0.260.0030.00317.16
8.0.250.0060.00316.86
8.0.240.0080.00016.93
8.0.230.0080.00016.78
8.0.220.0100.00016.77
8.0.210.0070.00016.85
8.0.200.0000.00616.86
8.0.190.0070.00016.96
8.0.180.0040.00416.75
8.0.170.0050.00316.88
8.0.160.0040.00416.87
8.0.150.0000.00716.89
8.0.140.0040.00416.75
8.0.130.0000.00713.32
8.0.120.0040.00416.84
8.0.110.0040.00416.91
8.0.100.0040.00416.95
8.0.90.0070.00016.99
8.0.80.0100.01016.88
8.0.70.0070.00016.87
8.0.60.0000.00716.75
8.0.50.0040.00416.88
8.0.30.0110.00817.13
8.0.20.0110.00717.40
8.0.10.0050.00316.84
8.0.00.0070.01116.62
7.4.330.0030.00315.09
7.4.320.0000.00616.46
7.4.300.0070.00016.58
7.4.290.0040.00416.55
7.4.280.0050.00516.68
7.4.270.0030.00316.51
7.4.260.0000.00716.61
7.4.250.0040.00416.51
7.4.240.0050.00216.54
7.4.230.0000.00716.49
7.4.220.0070.01116.55
7.4.210.0030.01016.48
7.4.200.0070.00016.54
7.4.160.0030.01216.41
7.4.150.0140.00317.40
7.4.140.0160.00917.86
7.4.130.0040.01816.41
7.4.120.0090.00916.53
7.4.110.0110.00616.48
7.4.100.0090.00916.43
7.4.90.0030.01416.42
7.4.80.0070.01019.39
7.4.70.0100.00616.64
7.4.60.0060.01016.56
7.4.50.0000.00816.54
7.4.40.0030.01316.50
7.4.30.0060.01116.56
7.4.00.0070.00715.13
7.3.330.0060.00013.36
7.3.320.0060.00013.28
7.3.310.0040.00416.43
7.3.300.0040.00416.30
7.3.290.0040.01116.32
7.3.280.0110.00816.36
7.3.270.0080.00817.40
7.3.260.0200.00316.53
7.3.240.0060.01416.33
7.3.230.0100.00616.43
7.3.210.0030.01416.56
7.3.200.0040.01316.43
7.3.190.0090.00916.45
7.3.180.0040.01216.43
7.3.170.0070.01016.43
7.3.160.0100.00616.50
7.3.120.0100.00314.70
7.3.110.0070.01014.79
7.3.100.0060.00914.78
7.3.90.0040.00814.85
7.3.80.0120.00314.64
7.3.70.0100.00614.86
7.3.60.0040.00414.81
7.3.50.0060.00614.89
7.3.40.0040.00414.91
7.3.30.0030.01314.86
7.3.20.0030.00616.75
7.3.10.0090.01016.51
7.3.00.0090.00716.56
7.2.330.0150.00316.77
7.2.320.0080.00916.69
7.2.310.0100.00616.70
7.2.300.0130.00416.57
7.2.290.0130.00616.86
7.2.240.0030.00614.96
7.2.230.0030.00915.03
7.2.220.0100.00715.31
7.2.210.0090.00614.86
7.2.200.0000.01414.95
7.2.190.0030.01315.24
7.2.180.0070.01014.93
7.2.170.0090.00615.07
7.2.160.0090.00614.81
7.2.150.0070.01017.04
7.2.140.0100.00716.99
7.2.130.0250.00516.66
7.2.120.0450.00816.72
7.2.110.0160.00816.38
7.2.100.0220.00816.43
7.2.90.0120.00616.72
7.2.80.0160.00916.70
7.2.70.0300.01016.99
7.2.60.0280.00816.73
7.2.50.0280.00316.83
7.2.40.0320.00616.72
7.2.30.0280.00817.00
7.2.20.0290.00916.89
7.2.10.0240.00816.77
7.2.00.0150.00517.55
7.1.330.0100.00315.58
7.1.320.0090.00915.62
7.1.310.0060.00615.71
7.1.300.0120.00315.66
7.1.290.0030.01015.53
7.1.280.0000.01215.71
7.1.270.0030.00915.43
7.1.260.0040.01115.63
7.1.250.0140.00915.55
7.1.200.0030.00615.67
7.1.100.0060.00618.13
7.1.70.0000.01017.16
7.1.60.0130.01319.11
7.1.50.0140.02034.68
7.1.00.0000.08022.44
7.0.200.0080.00416.54
7.0.60.0100.07319.92
7.0.50.0030.04317.84
7.0.40.0070.04320.26
7.0.30.0230.05720.23
7.0.20.0170.05020.23
7.0.10.0200.05720.10
7.0.00.0030.09320.15
5.6.280.0000.04721.10
5.6.210.0130.06720.63
5.6.200.0030.04018.27
5.6.190.0070.08020.39
5.6.180.0330.07720.41
5.6.170.0300.05020.48
5.6.160.0070.06320.56
5.6.150.0000.04718.18
5.6.140.0070.08018.11
5.6.130.0130.08018.27
5.6.120.0070.03721.15
5.6.110.0070.04720.89
5.6.100.0130.07720.96
5.6.90.0130.07321.00
5.6.80.0030.06320.53
5.6.70.0400.06720.48
5.5.350.0270.07020.42
5.5.340.0030.05318.05
5.5.330.0130.03720.31
5.5.320.0300.06020.34
5.5.310.0170.03720.50
5.5.300.0130.06717.98
5.5.290.0030.07718.08
5.5.280.0100.08020.77
5.5.270.0070.08320.76
5.5.260.0070.05720.68
5.5.250.0070.05320.69
5.5.240.0030.05720.17
5.4.450.0700.05719.58
5.4.440.0770.05019.55
5.4.430.0830.07019.58
5.4.420.0670.05719.49
5.4.410.0770.04719.45
5.4.400.0800.05719.01
5.4.390.0700.06319.38
5.4.380.0670.06319.14
5.4.370.0730.04719.13
5.4.360.0770.07319.23
5.4.350.0730.04719.26
5.4.340.0630.05319.23
5.4.320.0700.05719.13
5.4.310.0730.07019.22
5.4.300.0530.07019.29
5.4.290.0330.06318.98
5.4.280.0630.05319.28
5.4.270.0670.05019.22
5.4.260.0500.05719.14
5.4.250.0530.05318.83
5.4.240.0800.05718.88
5.4.230.0570.07319.25
5.4.220.0770.06319.27
5.4.210.0670.07019.27
5.4.200.0730.05719.01
5.4.190.0600.06018.86
5.4.180.0630.06319.29
5.4.170.0700.05719.00
5.4.160.0730.04019.12
5.4.150.0630.05319.26
5.4.140.0670.06316.43
5.4.130.0500.06016.30
5.4.120.0800.06016.40
5.4.110.0970.06016.51
5.4.100.1170.05716.62
5.4.90.0930.06716.42
5.4.80.1070.05716.23
5.4.70.0770.04016.23
5.4.60.0730.05716.58
5.4.50.0800.07016.59
5.4.40.0770.07016.62
5.4.30.0730.07016.50
5.4.20.0870.06716.50
5.4.10.1000.05716.42
5.4.00.0970.05015.77

preferences:
72.79 ms | 401 KiB | 5 Q