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 ; } } $class = new A(); $class->mohamed('name')->test('mohamed');; echo $class->a2." and ".$class->b2;

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.0030.00616.57
8.5.00.0120.01020.03
8.4.150.0020.00114.05
8.4.140.0140.00817.48
8.4.130.0090.00717.71
8.4.120.0110.01120.73
8.4.110.0130.00818.75
8.4.100.0100.01117.98
8.4.90.0070.00920.71
8.4.80.0060.00518.97
8.4.70.0120.00818.84
8.4.60.0110.00820.65
8.4.50.0090.00418.64
8.4.40.0180.00319.32
8.4.30.0160.00318.48
8.4.20.0070.00719.12
8.4.10.0130.00617.37
8.3.280.0140.00618.25
8.3.270.0120.00816.58
8.3.260.0080.01316.70
8.3.250.0090.00618.92
8.3.240.0030.00516.57
8.3.230.0090.00916.52
8.3.220.0110.00719.05
8.3.210.0110.00516.55
8.3.200.0040.00516.66
8.3.190.0050.00417.16
8.3.180.0070.00121.05
8.3.170.0150.00318.96
8.3.160.0090.00916.73
8.3.150.0060.01216.71
8.3.140.0110.00416.85
8.3.130.0040.01116.85
8.3.120.0060.00318.94
8.3.110.0030.00620.94
8.3.100.0050.00518.34
8.3.90.0130.00616.63
8.3.80.0070.00317.97
8.3.70.0130.00916.25
8.3.60.0060.00918.20
8.3.50.0140.00521.28
8.3.40.0120.00318.62
8.3.30.0090.00618.71
8.3.20.0030.00522.66
8.3.10.0080.00020.04
8.3.00.0040.00423.66
8.2.290.0120.00717.27
8.2.280.0120.00718.38
8.2.270.0060.00316.90
8.2.260.0110.00717.15
8.2.250.0040.00416.54
8.2.240.0050.00517.31
8.2.230.0090.00022.58
8.2.220.0000.00924.06
8.2.210.0090.00926.77
8.2.200.0030.00716.75
8.2.190.0120.00616.63
8.2.180.0090.00916.63
8.2.170.0120.00322.96
8.2.160.0070.00720.52
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00326.16
8.2.110.0030.00620.71
8.2.100.0040.00817.91
8.2.90.0030.00619.77
8.2.80.0040.00419.20
8.2.70.0000.00817.68
8.2.60.0050.00318.21
8.2.50.0030.00518.10
8.2.40.0000.00819.43
8.2.30.0040.00419.25
8.2.20.0050.00218.07
8.2.10.0000.00819.07
8.2.00.0050.00319.19
8.1.330.0110.00816.07
8.1.320.0130.00716.43
8.1.310.0070.01016.68
8.1.300.0040.00416.49
8.1.290.0030.00618.88
8.1.280.0100.00725.92
8.1.270.0040.00422.20
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0040.00820.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0000.01117.36
8.1.180.0000.00918.10
8.1.170.0030.00618.50
8.1.160.0000.00718.86
8.1.150.0000.00718.90
8.1.140.0040.00421.00
8.1.130.0030.00620.16
8.1.120.0000.00717.50
8.1.110.0000.00717.36
8.1.100.0030.00917.36
8.1.90.0030.00617.45
8.1.80.0000.00817.38
8.1.70.0030.00317.39
8.1.60.0060.00317.60
8.1.50.0030.00617.52
8.1.40.0000.00817.55
8.1.30.0040.00417.68
8.1.20.0050.00317.66
8.1.10.0040.00417.62
8.1.00.0000.00817.41
8.0.300.0040.00419.60
8.0.290.0080.00016.58
8.0.280.0030.00318.32
8.0.270.0030.00317.22
8.0.260.0000.00720.13
8.0.250.0030.00316.87
8.0.240.0050.00316.98
8.0.230.0020.00517.01
8.0.220.0000.00616.86
8.0.210.0000.00816.93
8.0.200.0000.00716.88
8.0.190.0050.00316.96
8.0.180.0000.00816.99
8.0.170.0080.00016.94
8.0.160.0040.00416.92
8.0.150.0070.00416.76
8.0.140.0040.00316.80
8.0.130.0050.00013.40
8.0.120.0030.00616.77
8.0.110.0080.00016.86
8.0.100.0070.00016.74
8.0.90.0090.00016.87
8.0.80.0090.00916.96
8.0.70.0040.00416.79
8.0.60.0030.00516.93
8.0.50.0000.00716.89
8.0.30.0070.01416.95
8.0.20.0060.01317.40
8.0.10.0050.00316.94
8.0.00.0070.01416.90
7.4.330.0000.00515.55
7.4.320.0000.00716.54
7.4.300.0040.00416.50
7.4.290.0040.00416.57
7.4.280.0050.00316.54
7.4.270.0000.00816.59
7.4.260.0050.00013.32
7.4.250.0030.00516.43
7.4.240.0040.00416.51
7.4.230.0030.00316.62
7.4.220.0000.00716.54
7.4.210.0070.00816.68
7.4.200.0030.00316.62
7.4.130.0150.00316.57
7.4.120.0090.00916.43
7.4.110.0090.00916.32
7.4.100.0100.00716.69
7.4.90.0120.00416.50
7.4.80.0030.01619.39
7.4.70.0060.01016.57
7.4.60.0130.00316.42
7.4.50.0090.00216.50
7.4.40.0110.00716.66
7.4.00.0050.01115.05
7.3.330.0070.00016.22
7.3.320.0020.00213.32
7.3.310.0070.00016.16
7.3.300.0070.00016.16
7.3.290.0030.00316.25
7.3.280.0120.01016.30
7.3.260.0120.00816.42
7.3.240.0100.00816.33
7.3.230.0070.01016.49
7.3.210.0120.00616.39
7.3.200.0100.01316.42
7.3.190.0110.00716.45
7.3.180.0090.01216.26
7.3.170.0120.00916.36
7.3.160.0160.00616.26
7.3.120.0040.01114.74
7.3.110.0070.01014.80
7.3.100.0040.00714.81
7.3.90.0070.01014.77
7.3.80.0060.00814.41
7.3.70.0040.00914.31
7.3.60.0040.01014.58
7.3.50.0080.00614.65
7.3.40.0050.01214.66
7.3.30.0060.00614.53
7.3.20.0210.00815.60
7.3.10.0210.00615.46
7.3.00.0200.00515.64
7.2.330.0130.00916.36
7.2.320.0080.00816.57
7.2.310.0040.01216.52
7.2.300.0070.00916.44
7.2.290.0050.01116.57
7.2.250.0060.01115.02
7.2.240.0100.01015.28
7.2.230.0100.00714.88
7.2.220.0120.00014.77
7.2.210.0110.00814.83
7.2.200.0020.01214.62
7.2.190.0050.01014.65
7.2.180.0050.01114.72
7.2.170.0120.00414.81
7.2.160.0080.00814.41
7.2.150.0370.00714.71
7.2.140.0400.01014.79
7.2.130.0330.00814.60
7.2.120.0350.01215.02
7.2.110.0440.00014.54
7.2.100.0310.00715.04
7.2.90.0550.00315.00
7.2.80.0570.00315.07
7.2.70.0370.00614.73
7.2.60.0310.01215.02
7.2.50.0440.00014.90
7.2.40.0340.01314.97
7.2.30.0390.00914.79
7.2.20.0460.00615.23
7.2.10.0780.00415.04
7.2.00.0590.00915.25
7.1.330.0070.00715.91
7.1.320.0130.00315.64
7.1.310.0180.00814.76
7.1.300.0160.00814.46
7.1.290.0240.00414.75
7.1.280.0240.00714.66
7.1.270.0240.00814.72
7.1.260.0190.00714.71
7.1.250.0360.00613.73

preferences:
40.49 ms | 403 KiB | 5 Q