3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a2; public $b2; public function mohamed($a){ $this->a2 = $a; return $this ; } public function test($b){ $this->b2 = $b; return $this ; } public function __tostring() { return "A2 is '".$this->a2."' and B2 is '".$this->b2."'"; } } $class = new A(); echo $class->mohamed('name')->test('mohamed');;

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.5.10.0050.00416.54
8.5.00.0100.01119.84
8.4.160.0160.00623.73
8.4.150.0020.00014.05
8.4.140.0110.01117.87
8.4.130.0100.00817.57
8.4.120.0120.00920.77
8.4.110.0120.00918.71
8.4.100.0070.00217.88
8.4.90.0100.01118.66
8.4.80.0090.01117.90
8.4.70.0090.01118.10
8.4.60.0120.00818.74
8.4.50.0070.01318.35
8.4.40.0120.00819.39
8.4.30.0060.01318.54
8.4.20.0100.01018.87
8.4.10.0170.00317.78
8.3.280.0140.01218.48
8.3.270.0200.00416.53
8.3.260.0110.00816.52
8.3.250.0130.00618.85
8.3.240.0110.00916.35
8.3.230.0130.00616.45
8.3.220.0060.00917.11
8.3.210.0050.00316.53
8.3.200.0060.00216.72
8.3.190.0120.00816.71
8.3.180.0110.00716.49
8.3.170.0100.01018.86
8.3.160.0000.00818.17
8.3.150.0160.00316.71
8.3.140.0040.00418.93
8.3.130.0050.00316.69
8.3.120.0030.00520.77
8.3.110.0070.00416.88
8.3.100.0060.00316.53
8.3.90.0080.00018.58
8.3.80.0030.00718.43
8.3.70.0070.00716.75
8.3.60.0100.01018.32
8.3.50.0120.00421.26
8.3.40.0080.00818.73
8.3.30.0090.00618.57
8.3.20.0000.00820.79
8.3.10.0050.00220.39
8.3.00.0040.00423.52
8.2.290.0140.00520.36
8.2.280.0080.01220.25
8.2.270.0140.00719.00
8.2.260.0040.00418.27
8.2.250.0040.00416.68
8.2.240.0040.00416.96
8.2.230.0030.00620.94
8.2.220.0000.00824.06
8.2.210.0030.00626.77
8.2.200.0030.00718.16
8.2.190.0070.01116.58
8.2.180.0120.00616.35
8.2.170.0040.01122.96
8.2.160.0100.00720.39
8.2.150.0070.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00819.36
8.2.110.0100.00020.87
8.2.100.0120.00317.53
8.2.90.0030.00619.63
8.2.80.0060.00320.55
8.2.70.0040.00418.04
8.2.60.0000.00918.22
8.2.50.0060.00318.10
8.2.40.0060.00319.35
8.2.30.0000.00719.25
8.2.20.0000.00817.96
8.2.10.0040.00419.16
8.2.00.0040.00419.29
8.1.330.0130.00721.73
8.1.320.0080.01116.34
8.1.310.0080.00018.59
8.1.300.0060.00318.11
8.1.290.0030.00618.88
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.18
8.1.230.0030.00720.91
8.1.220.0060.00317.79
8.1.210.0080.00018.97
8.1.200.0050.00517.35
8.1.190.0080.00017.38
8.1.180.0030.00618.10
8.1.170.0050.00318.57
8.1.160.0070.00019.07
8.1.150.0070.00018.79
8.1.140.0050.00220.89
8.1.130.0060.00320.05
8.1.120.0030.00517.48
8.1.110.0070.00017.45
8.1.100.0070.00417.43
8.1.90.0080.00017.38
8.1.80.0040.00417.52
8.1.70.0030.00317.35
8.1.60.0000.01117.57
8.1.50.0040.00417.40
8.1.40.0030.00617.50
8.1.30.0020.00517.66
8.1.20.0040.00417.57
8.1.10.0000.00817.58
8.1.00.0000.00817.51
8.0.300.0040.00420.07
8.0.290.0040.00716.63
8.0.280.0000.00718.43
8.0.270.0000.00717.17
8.0.260.0000.00620.06
8.0.250.0030.00316.96
8.0.240.0040.00416.96
8.0.230.0050.00516.95
8.0.220.0030.00316.88
8.0.210.0040.00416.86
8.0.200.0030.00316.89
8.0.190.0070.00016.96
8.0.180.0040.00416.84
8.0.170.0000.00816.90
8.0.160.0070.00016.88
8.0.150.0070.00016.83
8.0.140.0040.00416.88
8.0.130.0000.00513.28
8.0.120.0090.00016.84
8.0.110.0040.00416.90
8.0.100.0050.00316.66
8.0.90.0080.00016.92
8.0.80.0110.00316.88
8.0.70.0040.00416.90
8.0.60.0000.00716.93
8.0.50.0000.00716.77
8.0.30.0110.00417.30
8.0.20.0140.00417.18
8.0.10.0020.00516.79
8.0.00.0150.00716.88
7.4.330.0060.00015.55
7.4.320.0030.00316.51
7.4.300.0060.00016.50
7.4.290.0070.00016.46
7.4.280.0000.00816.40
7.4.270.0070.00016.63
7.4.260.0030.00313.22
7.4.250.0040.00416.58
7.4.240.0050.00216.51
7.4.230.0000.00716.71
7.4.220.0020.00516.60
7.4.210.0080.00916.49
7.4.200.0030.00316.64
7.4.130.0110.00816.30
7.4.120.0120.00616.46
7.4.110.0070.01016.59
7.4.100.0100.00616.55
7.4.90.0060.01016.50
7.4.80.0070.01119.39
7.4.70.0060.01216.43
7.4.60.0030.01416.39
7.4.50.0040.00816.47
7.4.40.0070.01016.50
7.4.00.0070.00715.07
7.3.330.0000.00616.40
7.3.320.0050.00013.29
7.3.310.0000.00716.18
7.3.300.0000.00716.31
7.3.290.0040.00416.28
7.3.280.0200.00716.31
7.3.260.0130.00716.40
7.3.240.0060.01116.47
7.3.230.0130.00316.40
7.3.210.0120.00616.53
7.3.200.0080.00816.32
7.3.190.0090.00616.41
7.3.180.0060.01716.22
7.3.170.0090.01016.48
7.3.160.0110.00716.40
7.3.120.0060.01014.59
7.3.110.0090.00614.78
7.3.100.0000.01514.92
7.3.90.0060.01214.80
7.3.80.0100.00414.68
7.3.70.0070.00914.49
7.3.60.0070.00614.68
7.3.50.0080.00514.46
7.3.40.0030.01214.67
7.3.30.0070.00514.44
7.3.20.0150.00715.57
7.3.10.0240.00615.75
7.3.00.0170.00715.52
7.2.330.0090.00916.73
7.2.320.0120.00616.70
7.2.310.0030.01416.79
7.2.300.0120.00416.46
7.2.290.0090.00916.41
7.2.240.0100.00315.18
7.2.230.0030.01314.64
7.2.220.0070.00715.20
7.2.210.0080.00714.86
7.2.200.0080.01014.86
7.2.190.0060.01114.73
7.2.180.0060.01314.80
7.2.170.0080.00714.89
7.2.160.0110.00614.95
7.2.150.0280.00315.83
7.2.140.0250.00915.72
7.2.130.0260.00415.79
7.2.120.0340.00515.74
7.2.110.0200.00915.64
7.2.100.0270.00615.89
7.2.90.0200.00815.85
7.2.80.0250.00815.80
7.2.70.0200.00515.78
7.2.60.0240.00615.67
7.2.50.0420.00615.77
7.2.40.0270.00915.83
7.2.30.0260.00715.76
7.2.20.0240.00615.85
7.2.10.0240.00815.99
7.2.00.0270.01115.79
7.1.330.0070.01015.72
7.1.320.0070.01015.66
7.1.310.0190.00514.70
7.1.300.0290.00614.64
7.1.290.0260.00214.47
7.1.280.0200.00914.70
7.1.270.0240.00714.57
7.1.260.0210.00914.75
7.1.250.0210.00614.79

preferences:
176.55 ms | 403 KiB | 5 Q