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.0110.01116.50
8.3.50.0130.00716.09
8.3.40.0140.00718.93
8.3.30.0090.00618.68
8.3.20.0040.00420.16
8.3.10.0000.00821.92
8.3.00.0040.00423.67
8.2.180.0140.00716.60
8.2.170.0100.00322.96
8.2.160.0000.01420.11
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00420.40
8.2.120.0000.00726.35
8.2.110.0110.00020.35
8.2.100.0070.00417.59
8.2.90.0060.00319.21
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0000.00717.92
8.2.50.0000.00718.10
8.2.40.0050.00220.60
8.2.30.0040.00419.11
8.2.20.0070.00418.30
8.2.10.0030.00518.12
8.2.00.0050.00318.11
8.1.280.0170.00325.92
8.1.270.0030.00521.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0070.00322.17
8.1.230.0110.00017.64
8.1.220.0000.00817.76
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0120.00017.00
8.1.180.0070.00018.10
8.1.170.0040.00418.57
8.1.160.0000.00718.81
8.1.150.0050.00320.01
8.1.140.0040.00417.34
8.1.130.0030.00319.02
8.1.120.0040.00417.40
8.1.110.0070.00017.30
8.1.100.0040.00417.30
8.1.90.0040.00417.36
8.1.80.0060.00317.35
8.1.70.0000.00917.45
8.1.60.0080.00017.49
8.1.50.0020.00517.53
8.1.40.0040.00417.50
8.1.30.0040.00417.54
8.1.20.0090.00317.61
8.1.10.0040.00417.55
8.1.00.0000.00817.48
8.0.300.0060.00318.77
8.0.290.0060.00316.63
8.0.280.0070.00018.31
8.0.270.0070.00017.33
8.0.260.0000.00618.57
8.0.250.0030.00316.94
8.0.240.0000.00716.91
8.0.230.0000.00717.02
8.0.220.0000.00616.93
8.0.210.0030.00316.80
8.0.200.0060.00016.94
8.0.190.0050.00316.93
8.0.180.0070.00016.95
8.0.170.0000.00716.95
8.0.160.0030.00316.88
8.0.150.0040.00416.91
8.0.140.0000.00816.81
8.0.130.0000.00513.24
8.0.120.0000.00716.84
8.0.110.0060.00316.86
8.0.100.0000.00717.00
8.0.90.0000.00716.88
8.0.80.0070.01016.87
8.0.70.0030.00517.00
8.0.60.0040.00416.93
8.0.50.0050.00216.86
8.0.30.0110.00917.28
8.0.20.0100.01217.40
8.0.10.0050.00317.04
8.0.00.0090.00916.98
7.4.330.0020.00215.55
7.4.320.0030.00316.35
7.4.300.0030.00316.58
7.4.290.0070.00016.57
7.4.280.0040.00416.57
7.4.270.0000.00716.57
7.4.260.0000.00716.56
7.4.250.0070.00016.46
7.4.240.0040.00416.62
7.4.230.0070.00016.48
7.4.220.0030.01316.44
7.4.210.0050.00916.53
7.4.200.0040.00416.58
7.4.160.0120.00816.59
7.4.150.0000.01717.40
7.4.140.0090.00917.86
7.4.130.0100.01016.66
7.4.120.0110.00816.61
7.4.110.0100.00616.40
7.4.100.0090.01416.54
7.4.90.0140.00316.69
7.4.80.0080.00819.39
7.4.70.0200.00016.53
7.4.60.0030.01316.54
7.4.50.0060.00916.32
7.4.40.0160.00516.65
7.4.30.0070.01016.43
7.3.330.0000.00513.22
7.3.320.0050.00013.22
7.3.310.0080.00016.24
7.3.300.0070.00016.41
7.3.290.0000.00716.22
7.3.280.0090.00816.34
7.3.270.0040.01417.40
7.3.260.0110.00616.48
7.3.250.0090.00716.44
7.3.240.0130.00516.35
7.3.230.0140.00316.34
7.3.210.0160.00616.40
7.3.200.0150.00616.47
7.3.190.0140.00716.31
7.3.180.0100.00716.39
7.3.170.0090.00916.43
7.3.160.0090.00616.37
7.2.330.0130.00416.39
7.2.320.0030.01316.30
7.2.310.0070.01016.48
7.2.300.0030.01616.30
7.2.290.0080.01116.52
7.1.100.0830.01115.96
7.1.90.0840.01015.91
7.1.80.0950.00515.77
7.1.70.1150.00714.94
7.1.60.1230.01032.94
7.1.50.0900.01332.65
7.1.40.0920.01232.33
7.1.30.0890.01332.44
7.1.20.0910.01732.42
7.1.10.0870.00814.52
7.1.00.0840.00814.50
7.0.240.0680.00815.62
7.0.230.0790.00815.57
7.0.220.0850.00515.72
7.0.210.0850.00714.53
7.0.200.0770.00814.59
7.0.190.1040.01014.36
7.0.180.0840.01014.08
7.0.170.0840.00814.20
7.0.160.0790.01214.18
7.0.150.0720.00514.17
7.0.140.0930.00614.15
7.0.130.0910.01014.22
7.0.120.0780.01014.56
7.0.110.1340.00614.09
7.0.100.0880.01314.20
7.0.90.0850.01014.27
7.0.80.0950.00314.18
7.0.70.0950.00814.05
7.0.60.0920.01013.97
7.0.50.0830.00714.13
7.0.40.0800.01014.32
7.0.30.0960.00814.23
7.0.20.1100.00814.32
7.0.10.0900.01114.16
7.0.00.0970.01014.28

preferences:
58.62 ms | 400 KiB | 5 Q