3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $a; public function __construct($a) { $this->a = $a; } } $b = new Test(1); $a = $b; var_dump($b); var_dump($a);

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.34
8.3.50.0040.01518.08
8.3.40.0080.00818.59
8.3.30.0120.00318.60
8.3.20.0080.00018.95
8.3.10.0050.00323.52
8.3.00.0060.00320.71
8.2.180.0140.00418.07
8.2.170.0110.00722.96
8.2.160.0090.00622.20
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00419.66
8.2.120.0070.00026.35
8.2.110.0060.00320.99
8.2.100.0120.00017.86
8.2.90.0050.00517.75
8.2.80.0000.00818.84
8.2.70.0080.00017.78
8.2.60.0050.00318.22
8.2.50.0060.00318.10
8.2.40.0070.00019.03
8.2.30.0000.00719.23
8.2.20.0090.00017.89
8.2.10.0070.00017.92
8.2.00.0030.00517.56
8.1.280.0100.01025.92
8.1.270.0000.00820.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00619.14
8.1.230.0080.00318.97
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0050.00218.77
8.1.150.0040.00418.76
8.1.140.0040.00422.18
8.1.130.0000.00620.17
8.1.120.0000.00717.41
8.1.110.0000.00817.42
8.1.100.0070.00017.39
8.1.90.0040.00417.38
8.1.80.0040.00417.27
8.1.70.0000.00817.41
8.1.60.0000.00817.62
8.1.50.0040.00417.51
8.1.40.0050.00317.42
8.1.30.0080.00017.54
8.1.20.0000.00817.64
8.1.10.0000.00817.41
8.1.00.0040.00417.51
8.0.300.0040.00419.64
8.0.290.0080.00016.63
8.0.280.0050.00318.45
8.0.270.0030.00317.17
8.0.260.0030.00318.37
8.0.250.0070.00016.89
8.0.240.0040.00416.77
8.0.230.0030.00316.77
8.0.220.0000.00716.81
8.0.210.0030.00516.71
8.0.200.0030.00316.85
8.0.190.0040.00416.77
8.0.180.0000.00816.77
8.0.170.0040.00416.77
8.0.160.0000.00716.80
8.0.150.0000.00716.67
8.0.140.0030.00316.63
8.0.130.0050.00013.13
8.0.120.0050.00316.76
8.0.110.0040.00416.83
8.0.100.0000.00816.77
8.0.90.0040.00416.89
8.0.80.0080.00716.83
8.0.70.0030.00316.88
8.0.60.0050.00316.71
8.0.50.0040.00416.88
8.0.30.0110.00916.91
8.0.20.0120.00517.40
8.0.10.0070.00016.78
8.0.00.0140.00616.75
7.4.330.0050.00015.55
7.4.320.0000.00616.51
7.4.300.0030.00316.60
7.4.290.0030.00516.42
7.4.280.0070.00316.34
7.4.270.0030.00316.62
7.4.260.0030.00316.41
7.4.250.0000.00816.55
7.4.240.0000.00716.53
7.4.230.0030.00316.40
7.4.220.0060.00316.59
7.4.210.0070.00816.54
7.4.200.0030.00316.30
7.4.160.0090.00616.50
7.4.140.0100.01117.86
7.4.130.0170.00016.38
7.4.120.0090.00916.52
7.3.330.0000.00513.27
7.3.320.0030.00313.16
7.3.310.0030.00616.32
7.3.300.0030.00316.23
7.3.290.0070.00016.21
7.3.280.0100.00816.26
7.3.260.0110.01016.44
7.3.240.0080.00916.35
7.2.100.0390.00014.62

preferences:
33.35 ms | 401 KiB | 5 Q