3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct($x) { $this->x = $x; } public function printX($test) { print $test->x . PHP_EOL; } } $test1 = new Test(123); $test2 = new Test(345); $test1->printX($test2); $test2->printX($test1);

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.70.0120.00316.63
8.3.60.0120.00918.43
8.3.50.0140.00716.62
8.3.40.0130.00318.85
8.3.30.0120.00918.89
8.3.20.0000.00820.78
8.3.10.0080.00023.74
8.3.00.0030.00522.42
8.2.190.0070.00716.58
8.2.180.0030.01316.50
8.2.170.0110.00422.96
8.2.160.0140.00422.25
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0030.00626.16
8.2.120.0070.00317.55
8.2.110.0030.00620.28
8.2.100.0080.00418.04
8.2.90.0040.00418.22
8.2.80.0040.00419.21
8.2.70.0040.00417.80
8.2.60.0000.00818.16
8.2.50.0000.00818.10
8.2.40.0030.00621.11
8.2.30.0000.00819.14
8.2.20.0000.00817.99
8.2.10.0000.00719.19
8.2.00.0000.00817.93
8.1.280.0150.00625.92
8.1.270.0040.00420.20
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.20
8.1.230.0040.00720.83
8.1.220.0060.00317.74
8.1.210.0040.00418.87
8.1.200.0100.00017.35
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0000.00818.56
8.1.160.0000.00918.79
8.1.150.0000.00818.93
8.1.140.0070.00020.17
8.1.130.0070.00017.47
8.1.120.0040.00417.51
8.1.110.0040.00417.40
8.1.100.0000.00817.48
8.1.90.0040.00417.47
8.1.80.0060.00317.41
8.1.70.0000.00717.46
8.1.60.0040.00417.57
8.1.50.0030.00517.53
8.1.40.0040.00417.39
8.1.30.0000.00817.52
8.1.20.0030.00617.55
8.1.10.0030.00517.62
8.1.00.0040.00417.52
8.0.300.0030.00620.09
8.0.290.0040.00416.63
8.0.280.0070.00018.40
8.0.270.0030.00317.26
8.0.260.0030.00516.75
8.0.250.0000.00716.97
8.0.240.0000.00716.85
8.0.230.0070.00016.98
8.0.220.0000.00816.89
8.0.210.0000.00716.80
8.0.200.0040.00416.99
8.0.190.0030.00516.80
8.0.180.0040.00416.78
8.0.170.0030.00616.80
8.0.160.0070.00016.98
8.0.150.0020.00516.91
8.0.140.0000.00716.89
8.0.130.0060.00013.35
8.0.120.0060.00316.84
8.0.110.0040.00416.95
8.0.100.0050.00216.72
8.0.90.0000.00716.73
8.0.80.0140.00716.90
8.0.70.0000.00716.88
8.0.60.0000.00716.82
8.0.50.0050.00216.66
8.0.30.0140.00517.30
8.0.20.0060.01216.95
8.0.10.0000.00817.00
8.0.00.0090.01016.83
7.4.330.0050.00015.55
7.4.320.0000.01016.47
7.4.300.0030.00316.63
7.4.290.0000.00716.41
7.4.280.0000.00716.58
7.4.270.0050.00216.50
7.4.260.0070.00016.55
7.4.250.0040.00416.48
7.4.240.0030.00316.63
7.4.230.0080.00016.41
7.4.220.0020.00516.71
7.4.210.0080.00916.52
7.4.200.0030.00316.63
7.4.160.0090.00816.38
7.4.140.0120.00817.86
7.4.130.0030.01416.41
7.4.120.0110.01116.41
7.4.110.0130.01016.44
7.4.100.0070.01016.40
7.4.90.0140.00316.39
7.4.80.0110.00719.39
7.4.70.0100.00616.38
7.4.60.0140.00316.43
7.4.50.0030.01316.54
7.4.40.0100.01316.32
7.4.10.0100.00714.70
7.4.00.0050.00814.75
7.3.330.0050.00013.33
7.3.320.0050.00013.27
7.3.310.0000.00716.16
7.3.300.0030.00316.18
7.3.290.0050.00516.32
7.3.280.0080.00916.29
7.3.260.0110.00816.40
7.3.230.0110.00616.53
7.3.210.0070.01016.36
7.3.200.0080.00816.52
7.3.190.0070.01116.53
7.3.180.0120.01116.59
7.3.170.0120.01116.43
7.3.160.0090.00616.52
7.3.130.0080.00414.77
7.3.120.0100.00615.02
7.3.110.0040.01214.45
7.3.100.0080.00514.61
7.3.90.0100.00314.70
7.3.80.0090.00614.86
7.3.70.0060.00614.69
7.3.60.0070.01014.71
7.3.50.0040.00414.86
7.3.40.0070.00314.85
7.3.30.0080.00714.77
7.3.20.0860.00615.72
7.3.10.0260.00515.63
7.3.00.0520.00515.52
7.2.330.0080.01616.60
7.2.320.0100.01316.50
7.2.310.0040.01416.38
7.2.300.0100.01016.84
7.2.290.0090.00916.38
7.2.260.0060.01315.00
7.2.250.0130.00315.11
7.2.240.0060.00914.76
7.2.230.0030.00714.84
7.2.220.0090.00315.26
7.2.210.0110.00415.23
7.2.200.0000.00914.95
7.2.190.0060.00914.66
7.2.180.0000.01614.91
7.2.170.0030.00714.89
7.2.160.0100.01015.03
7.2.150.0060.01016.07
7.2.140.1160.00816.03
7.2.130.0960.01015.64
7.2.120.0560.01015.79
7.2.110.0710.00216.10
7.2.100.1030.00815.84
7.2.90.0130.01215.70
7.2.80.0860.00915.99
7.2.70.0140.00515.89
7.2.60.0530.00615.95
7.2.50.0960.00915.96
7.2.40.0220.00715.76
7.2.30.0380.00716.01
7.2.20.0080.01315.84
7.2.10.0100.01315.97
7.2.00.0980.00615.86
7.1.330.0070.00715.56
7.1.320.0040.00815.87
7.1.310.0030.00716.14
7.1.300.0040.00815.70
7.1.290.0060.00315.95
7.1.280.0090.00315.76
7.1.270.0960.00514.90
7.1.260.0120.00314.71
7.1.250.0340.00314.74
7.1.240.0050.00315.80
7.1.230.0030.01015.64
7.1.220.0080.00615.62
7.1.210.0060.00615.93
7.1.200.0030.01015.71
7.1.190.0000.01415.85
7.1.180.0030.01315.85
7.1.170.0060.00615.85
7.1.160.0070.00715.82
7.1.150.0040.01016.06
7.1.140.0090.00315.87
7.1.130.0040.01615.84
7.1.120.0000.01115.89
7.1.110.0040.00815.96
7.1.100.0030.01015.80
7.1.90.0050.00515.56
7.1.80.0070.01015.84
7.1.70.0070.00715.99
7.1.60.0040.01115.85
7.1.50.0000.01615.93
7.1.40.0090.00915.86
7.1.30.0070.00715.79
7.1.20.0030.01315.68
7.1.10.0060.00615.78
7.1.00.0040.01115.65

preferences:
30.91 ms | 401 KiB | 5 Q