3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new class { public $a; public $b = null; public $c = ""; public function set($name) { $this->a[$name] = $name; $this->b[$name] = $name; $this->c[$name] = $name; } public function exec() { var_dump($this->a); var_dump($this->b); var_dump($this->c); } }; $test->write([1,2,3]); $test->exec(); $test->write("test"); $test->exec(); $test->write(123456); $test->exec();

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.00616.50
8.3.50.0100.00718.17
8.3.40.0090.00919.02
8.3.30.0120.00318.79
8.3.20.0070.00019.21
8.3.10.0040.00421.78
8.3.00.0040.00420.74
8.2.180.0160.00316.50
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00421.05
8.2.120.0040.00426.35
8.2.110.0060.00322.13
8.2.100.0110.00017.91
8.2.90.0000.00817.63
8.2.80.0030.00617.97
8.2.70.0040.00418.03
8.2.60.0000.00817.80
8.2.50.0090.00018.10
8.2.40.0040.00420.43
8.2.30.0040.00419.13
8.2.20.0050.00217.94
8.2.10.0040.00418.06
8.2.00.0000.00717.78
8.1.280.0080.00825.92
8.1.270.0080.00022.05
8.1.260.0040.00428.09
8.1.250.0070.00328.09
8.1.240.0040.00822.13
8.1.230.0040.00723.98
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0080.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.72
8.1.160.0000.00818.90
8.1.150.0070.00020.23
8.1.140.0080.00019.64
8.1.130.0000.00717.58
8.1.120.0050.00517.51
8.1.110.0070.00017.49
8.1.100.0040.00417.47
8.1.90.0040.00417.44
8.1.80.0000.00717.38
8.1.70.0000.00717.46
8.1.60.0070.00017.48
8.1.50.0000.00817.54
8.1.40.0030.00517.53
8.1.30.0060.00317.63
8.1.20.0000.00817.66
8.1.10.0050.00217.49
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0020.00518.37
8.0.270.0030.00317.27
8.0.260.0060.00017.14
8.0.250.0000.00616.93
8.0.240.0030.00317.03
8.0.230.0000.00716.98
8.0.220.0070.00016.84
8.0.210.0070.00016.85
8.0.200.0000.00817.00
8.0.190.0040.00417.04
8.0.180.0040.00416.99
8.0.170.0000.00816.94
8.0.160.0000.00717.02
8.0.150.0070.00017.03
8.0.140.0040.00416.81
8.0.130.0000.00513.40
8.0.120.0000.00816.95
8.0.110.0000.00716.88
8.0.100.0000.00716.99
8.0.90.0050.00316.92
8.0.80.0100.00616.93
8.0.70.0040.00416.85
8.0.60.0040.00416.98
8.0.50.0030.00416.96
8.0.30.0140.00517.13
8.0.20.0080.01017.40
8.0.10.0000.00817.03
8.0.00.0120.00916.93
7.4.330.0050.00015.55
7.4.320.0030.00316.42
7.4.300.0060.00016.52
7.4.290.0030.00316.63
7.4.280.0000.00816.57
7.4.270.0030.00316.43
7.4.260.0040.00416.56
7.4.250.0030.00316.56
7.4.240.0040.00416.53
7.4.230.0000.00716.71
7.4.220.0120.01016.56
7.4.210.0070.01316.65
7.4.200.0000.00716.40
7.4.160.0100.00916.55
7.4.150.0140.00317.40
7.4.140.0110.00817.86
7.4.130.0120.00716.57
7.4.120.0100.00916.61
7.4.110.0100.00716.54
7.4.100.0030.01316.70
7.4.90.0130.00316.57
7.4.80.0130.00319.39
7.4.70.0060.01216.74
7.4.60.0030.01216.60
7.4.50.0060.00916.41
7.4.40.0160.00616.62
7.4.30.0060.01016.44
7.4.00.0000.01814.93
7.3.330.0030.00313.38
7.3.320.0030.00313.26
7.3.310.0030.00316.18
7.3.300.0070.00016.35
7.3.290.0090.00616.29
7.3.280.0110.00716.27
7.3.270.0080.01517.40
7.3.260.0160.00716.32
7.3.250.0110.00816.43
7.3.240.0130.00316.38
7.3.230.0070.01216.41
7.3.210.0080.01116.53
7.3.200.0140.00316.31
7.3.190.0040.01216.56
7.3.180.0030.01316.57
7.3.170.0090.00916.25
7.3.160.0110.01116.63
7.2.330.0070.01316.36
7.2.320.0030.01316.76
7.2.310.0110.00616.56
7.2.300.0170.00316.73
7.2.290.0070.01116.65
7.2.110.0040.00816.20
7.2.100.0090.00016.48
7.2.90.0090.00616.60
7.2.80.0030.01016.57
7.2.70.0110.00416.88
7.2.60.0090.00916.80
7.2.50.0040.01016.87
7.2.40.0140.00016.74
7.2.30.0100.00316.84
7.2.20.0070.00716.84
7.2.10.0080.00316.86
7.2.00.0030.00818.10
7.1.230.0050.00515.46
7.1.220.0070.00715.80
7.1.210.0090.00315.86
7.1.200.0070.00515.62
7.1.190.0080.00415.68
7.1.180.0070.00715.37
7.1.170.0030.01015.46
7.1.160.0100.00315.68
7.1.150.0030.01215.73
7.1.140.0070.00715.71
7.1.130.0110.00315.72
7.1.120.0070.00315.48
7.1.110.0100.00315.55
7.1.100.0030.01215.57
7.1.90.0030.01015.63
7.1.80.0040.00815.66
7.1.70.0080.00216.44
7.1.60.0040.00916.54
7.1.50.0050.01216.37
7.1.40.0120.00015.55
7.1.30.7440.01315.57
7.1.20.0030.00915.50
7.1.10.0060.00315.50
7.1.00.0080.03718.91
7.0.310.0040.00415.34
7.0.300.0030.01015.05
7.0.290.0090.00015.39
7.0.280.0040.00815.26
7.0.270.0040.01115.41
7.0.260.0030.01015.36
7.0.250.0030.00715.29
7.0.240.0060.00615.31
7.0.230.0040.00715.20
7.0.220.0000.01315.48
7.0.210.0000.00715.43
7.0.200.0050.00915.71
7.0.190.0000.01115.43
7.0.180.0030.01015.48
7.0.170.0090.00015.39
7.0.160.0000.01215.16
7.0.150.0090.00315.15
7.0.140.0130.00015.16
7.0.130.0110.02618.70
7.0.120.0110.02818.75
7.0.110.0140.02718.65
7.0.100.0090.03018.54
7.0.90.0080.03318.68
7.0.80.0070.04618.50
7.0.70.0080.03018.49
7.0.60.0100.02818.54
7.0.50.0120.02918.66
7.0.40.0050.03217.59
7.0.30.0080.03117.66
7.0.20.0080.03117.63
7.0.10.0110.02917.54
7.0.00.0050.03317.61
5.6.380.0100.00314.05
5.6.370.0000.01213.92
5.6.360.0050.00514.04
5.6.350.0070.00713.94
5.6.340.0060.00613.73
5.6.330.0030.01014.29
5.6.320.0030.01014.29
5.6.310.0000.01214.05
5.6.300.0080.00514.27
5.6.290.0120.00314.37
5.6.280.0110.02717.45
5.6.270.0090.03117.43
5.6.260.0120.02817.55
5.6.250.0120.02717.52
5.6.240.0060.03317.38
5.6.230.0070.03917.35
5.6.220.0110.02817.30
5.6.210.0100.03017.37
5.6.200.0110.03117.45
5.6.190.0090.03217.38
5.6.180.0070.03417.42
5.6.170.0120.02917.36
5.6.160.0090.02717.25
5.6.150.0140.02717.24
5.6.140.0090.03217.28
5.6.130.0120.02617.33
5.6.120.0110.03017.46
5.6.110.0130.02917.54
5.6.100.0080.03317.44
5.6.90.0120.02817.38
5.6.80.0080.03017.02
5.6.70.0100.02917.01
5.6.60.0070.03217.06
5.6.50.0090.02817.09
5.6.40.0060.03317.13
5.6.30.0100.03117.01
5.6.20.0080.03017.01
5.6.10.0070.03017.07
5.6.00.0110.02617.03

preferences:
58.9 ms | 401 KiB | 5 Q