3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $var; public function getVar(){ return $this->var; } public function setVar($val){ $this->var = $val; } } $test = new Test(); $new = $test->setVar(10); echo $new->getVar();

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.0150.00018.43
8.3.50.0040.01118.30
8.3.40.0110.00418.70
8.3.30.0040.01118.84
8.3.20.0040.00420.21
8.3.10.0030.00621.70
8.3.00.0000.00719.91
8.2.180.0110.00718.29
8.2.170.0080.00622.96
8.2.160.0040.01120.52
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00420.95
8.2.120.0000.00726.35
8.2.110.0060.00322.09
8.2.100.0070.00719.64
8.2.90.0040.00417.72
8.2.80.0020.00519.15
8.2.70.0040.00417.55
8.2.60.0000.00917.80
8.2.50.0080.00018.10
8.2.40.0090.00022.38
8.2.30.0000.00719.38
8.2.20.0050.00217.97
8.2.10.0050.00318.07
8.2.00.0070.00018.21
8.1.280.0070.00725.92
8.1.270.0040.00420.28
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.06
8.1.230.0080.00320.70
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0070.00318.10
8.1.170.0040.00418.55
8.1.160.0040.00418.80
8.1.150.0030.00620.29
8.1.140.0040.00417.54
8.1.130.0040.00420.60
8.1.120.0040.00417.39
8.1.110.0000.00817.39
8.1.100.0000.00717.32
8.1.90.0040.00417.36
8.1.80.0030.00517.38
8.1.70.0040.00417.34
8.1.60.0060.00317.48
8.1.50.0050.00317.50
8.1.40.0060.00317.47
8.1.30.0040.00417.71
8.1.20.0000.00817.56
8.1.10.0040.00417.55
8.1.00.0000.00717.53
8.0.300.0000.00720.09
8.0.290.0000.00716.75
8.0.280.0070.00018.39
8.0.270.0080.00017.15
8.0.260.0060.00018.44
8.0.250.0030.00316.95
8.0.240.0040.00416.99
8.0.230.0030.00316.92
8.0.220.0040.00416.92
8.0.210.0070.00016.88
8.0.200.0030.00316.91
8.0.190.0070.00016.81
8.0.180.0040.00416.92
8.0.170.0040.00416.92
8.0.160.0070.00016.89
8.0.150.0060.00316.76
8.0.140.0030.00316.77
8.0.130.0060.00013.31
8.0.120.0040.00416.86
8.0.110.0000.00716.92
8.0.100.0080.00016.95
8.0.90.0070.00016.84
8.0.80.0090.00916.88
8.0.70.0040.00416.79
8.0.60.0000.00716.75
8.0.50.0040.00416.77
8.0.30.0130.00517.10
8.0.20.0080.01017.40
8.0.10.0030.00516.88
8.0.00.0090.00816.81
7.4.330.0030.00315.55
7.4.320.0030.00316.44
7.4.300.0000.00716.42
7.4.290.0030.00316.54
7.4.280.0080.00016.42
7.4.270.0000.00716.51
7.4.260.0070.00016.38
7.4.250.0040.00416.55
7.4.240.0070.00016.64
7.4.230.0040.00416.34
7.4.220.0040.00416.44
7.4.210.0070.01016.57
7.4.200.0040.00416.41
7.4.160.0050.01216.46
7.4.150.0110.00717.40
7.4.140.0110.00817.86
7.4.130.0130.00716.58
7.4.120.0100.00916.48
7.4.110.0070.01116.56
7.4.100.0060.01216.32
7.4.90.0060.01816.57
7.4.80.0090.00919.39
7.4.70.0120.00916.54
7.4.60.0090.00616.48
7.4.50.0060.00616.48
7.4.40.0090.00616.50
7.4.00.0100.00714.86
7.3.330.0000.00513.38
7.3.320.0030.00313.30
7.3.310.0050.00316.41
7.3.300.0030.00316.37
7.3.290.0070.00816.33
7.3.280.0100.00816.40
7.3.270.0090.00917.40
7.3.260.0130.00616.46
7.3.250.0060.01216.41
7.3.240.0130.00616.47
7.3.230.0030.01316.49
7.3.210.0140.00316.58
7.3.200.0160.00016.36
7.3.190.0090.00916.40
7.3.180.0120.00316.35
7.3.170.0100.00716.33
7.3.160.0030.01316.33
7.2.330.0000.01816.60
7.2.320.0000.02016.54
7.2.310.0030.01316.62
7.2.300.0110.01116.35
7.2.290.0090.00616.62
7.2.60.0100.00316.57
7.2.10.0400.00917.75
7.2.00.0460.01617.51
7.1.200.0000.00915.62
7.1.130.0480.01016.34
7.1.120.0460.01016.59
7.1.110.0330.01015.82
7.1.100.0330.01915.96
7.1.90.0700.01015.69
7.1.80.0380.00915.71
7.1.70.0420.00314.89
7.1.60.0600.01333.20
7.1.50.0490.01332.52
7.1.40.0510.00732.31
7.1.30.0550.01032.60
7.1.20.0450.01632.56
7.1.10.0380.01214.56
7.1.00.0620.00714.68

preferences:
46.05 ms | 400 KiB | 5 Q