3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* More complex example, with variables. */ class foo { public $foo; public $bar; function __construct() { $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.0190.00316.87
8.3.50.0170.00316.56
8.3.40.0110.00418.83
8.3.30.0120.00318.88
8.3.20.0040.00420.25
8.3.10.0000.00721.92
8.3.00.0000.00723.78
8.2.180.0150.00316.38
8.2.170.0110.00422.96
8.2.160.0130.00020.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00420.51
8.2.120.0000.00726.35
8.2.110.0070.00420.92
8.2.100.0060.00617.91
8.2.90.0080.00018.96
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0000.00820.52
8.2.30.0050.00219.14
8.2.20.0030.00618.08
8.2.10.0030.00518.11
8.2.00.0070.00017.93
8.1.280.0170.00325.92
8.1.270.0070.00022.17
8.1.260.0140.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.82
8.1.230.0080.00317.70
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.22
8.1.180.0070.00018.10
8.1.170.0050.00318.63
8.1.160.0040.00418.82
8.1.150.0040.00420.09
8.1.140.0070.00017.27
8.1.130.0000.00718.87
8.1.120.0050.00317.47
8.1.110.0000.00717.29
8.1.100.0080.00017.33
8.1.90.0040.00417.32
8.1.80.0000.01017.39
8.1.70.0000.00717.35
8.1.60.0000.00717.49
8.1.50.0030.00517.50
8.1.40.0040.00417.54
8.1.30.0000.00717.62
8.1.20.0090.00017.64
8.1.10.0020.00517.57
8.1.00.0000.00817.46
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.35
8.0.270.0000.00717.25
8.0.260.0000.00618.44
8.0.250.0070.00016.95
8.0.240.0000.00716.97
8.0.230.0040.00416.91
8.0.220.0000.00716.93
8.0.210.0060.00016.84
8.0.200.0000.00616.96
8.0.190.0030.00616.99
8.0.180.0000.00716.85
8.0.170.0000.00716.95
8.0.160.0000.00716.90
8.0.150.0000.00716.79
8.0.140.0030.00516.84
8.0.130.0000.00513.39
8.0.120.0080.00016.82
8.0.110.0040.00416.78
8.0.100.0040.00416.68
8.0.90.0050.00216.77
8.0.80.0060.00916.82
8.0.70.0040.00416.86
8.0.60.0000.00716.84
8.0.50.0000.00716.84
8.0.30.0090.00916.99
8.0.20.0080.01217.40
8.0.10.0040.00416.84
8.0.00.0100.00716.81
7.4.330.0040.00015.55
7.4.320.0040.00416.44
7.4.300.0030.00316.58
7.4.290.0040.00416.51
7.4.280.0030.00516.35
7.4.270.0040.00416.61
7.4.260.0030.00316.60
7.4.250.0030.00316.56
7.4.240.0030.00316.43
7.4.230.0000.00716.39
7.4.220.0090.01216.66
7.4.210.0110.00316.59
7.4.200.0040.00416.57
7.4.160.0130.00716.44
7.4.150.0150.00317.40
7.4.140.0120.00717.86
7.4.130.0080.01116.34
7.4.120.0080.01016.51
7.4.110.0000.01616.48
7.4.100.0100.00716.38
7.4.90.0100.00716.56
7.4.80.0080.01219.39
7.4.70.0150.00316.61
7.4.60.0080.00816.64
7.4.50.0040.01516.56
7.4.40.0120.00816.39
7.4.30.0050.01416.65
7.4.00.0030.01015.10
7.3.330.0000.00513.34
7.3.320.0050.00013.17
7.3.310.0000.00816.38
7.3.300.0030.00316.20
7.3.290.0030.00516.37
7.3.280.0090.00816.35
7.3.270.0110.00517.40
7.3.260.0100.00716.36
7.3.250.0100.00916.44
7.3.240.0100.00816.50
7.3.230.0130.00316.45
7.3.210.0070.01116.40
7.3.200.0030.01616.27
7.3.190.0100.00816.43
7.3.180.0100.01316.64
7.3.170.0050.01016.28
7.3.160.0080.00816.31
7.3.10.0080.00816.55
7.3.00.0140.00716.32
7.2.330.0100.00716.39
7.2.320.0100.00616.68
7.2.310.0100.00716.41
7.2.300.0100.01016.47
7.2.290.0180.00016.47
7.2.130.0070.00416.25
7.2.120.0090.00916.42
7.2.110.0110.00716.39
7.2.100.0120.00616.56
7.2.90.0070.00716.45
7.2.80.0460.00316.64
7.2.70.0090.00916.30
7.2.60.0070.00516.66
7.2.50.0160.01016.31
7.2.40.0230.00316.54
7.2.30.0150.00316.11
7.2.20.0100.00716.40
7.2.10.0150.00416.46
7.2.00.0030.01616.85
7.1.250.0100.00315.05
7.1.200.0000.01115.50
7.1.100.0760.01016.02
7.1.90.1200.01016.23
7.1.80.1380.01715.95
7.1.70.2520.00915.32
7.1.60.1560.01033.20
7.1.50.1790.01532.78
7.1.40.1910.02132.35
7.1.30.1740.02132.76
7.1.20.1570.01532.61
7.1.10.1430.01314.52
7.1.00.1440.01414.71
7.0.240.1250.00316.00
7.0.230.1200.01015.99
7.0.220.1460.01215.81
7.0.210.1500.01314.67
7.0.200.1730.00814.94
7.0.190.1400.01514.91
7.0.180.1590.01114.53
7.0.170.1520.01014.53
7.0.160.1350.01714.43
7.0.150.0890.01614.41
7.0.140.1100.01014.63
7.0.130.1340.00614.55
7.0.120.1210.01014.50
7.0.110.1330.00814.49
7.0.100.1160.00814.53
7.0.90.1150.01314.37
7.0.80.1260.00014.43
7.0.70.1070.01014.33
7.0.60.1030.01314.28
7.0.50.1370.00314.43
7.0.40.1300.00714.60
7.0.30.1220.00714.52
7.0.20.1200.00714.34
7.0.10.1140.01214.46
7.0.00.1560.01014.38

preferences:
63.51 ms | 400 KiB | 5 Q