3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myInstance = new MyClass('ciao'); $res = $myInstance->doSomething(); print($res); print("\n"); print($myInstance->getName()); class MyClass { private $_name; public function setName($name) { $this->_name = $name; } public function getName() { return $this->_name; } public function __construct($name) { $this->_name = $name; } public function doSomething($value) { $value = $value . '_MODIFIED'; } }

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.0070.01416.63
8.3.50.0070.00822.10
8.3.40.0110.00418.82
8.3.30.0070.00718.96
8.3.20.0000.00820.33
8.3.10.0040.00423.66
8.3.00.0040.00420.64
8.2.180.0120.00316.75
8.2.170.0030.01222.96
8.2.160.0040.01122.09
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00322.30
8.2.110.0090.00022.27
8.2.100.0080.00417.91
8.2.90.0040.00419.23
8.2.80.0040.00418.00
8.2.70.0000.00917.38
8.2.60.0060.00617.91
8.2.50.0090.00018.07
8.2.40.0000.00818.22
8.2.30.0040.00417.99
8.2.20.0080.00017.52
8.2.10.0050.00217.58
8.2.00.0040.00417.77
8.1.280.0030.01225.92
8.1.270.0060.00323.74
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00524.02
8.1.230.0070.00319.10
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0040.00417.30
8.1.180.0040.00418.10
8.1.170.0030.00618.53
8.1.160.0000.00922.05
8.1.150.0080.00018.55
8.1.140.0050.00317.29
8.1.130.0000.00817.89
8.1.120.0040.00417.42
8.1.110.0040.00417.39
8.1.100.0030.00617.45
8.1.90.0000.00717.41
8.1.80.0000.00717.40
8.1.70.0000.00717.32
8.1.60.0080.00417.53
8.1.50.0050.00317.53
8.1.40.0000.00817.52
8.1.30.0040.00417.60
8.1.20.0000.00817.64
8.1.10.0080.00017.58
8.1.00.0040.00417.36
8.0.300.0030.00318.77
8.0.290.0030.00317.05
8.0.280.0070.00018.29
8.0.270.0070.00017.18
8.0.260.0040.00416.86
8.0.250.0030.00317.02
8.0.240.0040.00416.94
8.0.230.0000.00816.84
8.0.220.0000.00716.94
8.0.210.0040.00416.87
8.0.200.0060.00016.90
8.0.190.0030.00616.91
8.0.180.0030.00316.91
8.0.170.0080.00016.82
8.0.160.0050.00316.91
8.0.150.0050.00316.82
8.0.140.0040.00416.81
8.0.130.0070.00013.30
8.0.120.0040.00416.73
8.0.110.0040.00416.79
8.0.100.0030.00516.76
8.0.90.0030.00516.76
8.0.80.0120.00916.95
8.0.70.0040.00416.84
8.0.60.0070.00016.74
8.0.50.0000.00716.73
8.0.30.0110.00917.13
8.0.20.0150.00317.40
8.0.10.0030.00616.99
8.0.00.0130.00316.79
7.4.330.0000.00515.09
7.4.320.0000.00616.41
7.4.300.0000.00616.53
7.4.290.0000.00916.50
7.4.280.0030.00616.49
7.4.270.0000.00716.43
7.4.260.0000.00716.44
7.4.250.0030.00416.36
7.4.240.0000.00716.58
7.4.230.0000.00716.63
7.4.220.0080.01116.68
7.4.210.0130.00316.58
7.4.200.0070.00016.34
7.4.190.0000.00716.63
7.4.160.0120.00416.39
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0150.00516.54
7.4.120.0100.01016.46
7.4.110.0030.01316.48
7.4.100.0120.00616.34
7.4.90.0110.00716.33
7.4.80.0040.01916.44
7.4.70.0040.01516.41
7.4.60.0140.00316.60
7.4.50.0090.00016.34
7.4.40.0040.01122.77
7.4.30.0060.01016.49
7.4.00.0060.01014.94
7.3.330.0000.00513.25
7.3.320.0060.00013.17
7.3.310.0000.00616.25
7.3.300.0070.00016.23
7.3.290.0100.00316.43
7.3.280.0080.01016.33
7.3.270.0040.01417.40
7.3.260.0130.00916.42
7.3.250.0130.00316.51
7.3.240.0090.00916.43
7.3.230.0150.00316.49
7.3.210.0150.00616.38
7.3.200.0080.01219.39
7.3.190.0070.01216.49
7.3.180.0100.00616.54
7.3.170.0070.01016.43
7.3.160.0060.01016.30
7.3.120.0070.00714.77
7.3.110.0060.01214.68
7.3.100.0000.01414.52
7.3.90.0040.00714.55
7.3.80.0110.00014.54
7.3.70.0060.00614.63
7.3.60.0000.01714.86
7.3.50.0090.00914.87
7.3.40.0130.00014.76
7.3.30.0090.00614.70
7.3.20.0090.00616.79
7.3.10.0090.00616.59
7.3.00.0060.00416.31
7.2.330.0120.00916.62
7.2.320.0170.00316.43
7.2.310.0180.00316.65
7.2.300.0060.01316.45
7.2.290.0170.00016.50
7.2.250.0030.01614.87
7.2.240.0040.01115.16
7.2.230.0040.01215.00
7.2.220.0030.01014.79
7.2.210.0060.00914.88
7.2.200.0030.01014.76
7.2.190.0030.01214.85
7.2.180.0060.01314.88
7.2.170.0040.00815.11
7.2.130.0060.00317.00
7.2.120.0100.00616.48
7.2.110.0060.00316.62
7.2.100.0040.00816.89
7.2.90.0060.00616.76
7.2.80.0100.00316.83
7.2.70.0060.00916.73
7.2.60.0050.00516.80
7.2.50.0000.01216.95
7.2.40.0060.00616.96
7.2.30.0030.00616.68
7.2.20.0060.00316.82
7.2.10.0000.01117.05
7.2.00.0080.00816.85
7.1.330.0030.00915.75
7.1.320.0090.00615.61
7.1.310.0040.00815.70
7.1.300.0030.01015.80
7.1.290.0060.00615.73
7.1.280.0040.01115.63
7.1.270.0040.01115.58
7.1.260.0100.00315.52
7.1.250.0080.00815.88
7.1.200.0030.01015.41
7.1.70.0040.00416.79
7.1.60.0070.01819.29
7.1.50.0070.01716.67
7.1.00.0030.06322.44
7.0.200.0000.01016.87
7.0.140.0000.07322.01
7.0.100.0200.04720.20
7.0.90.0200.08019.97
7.0.80.0330.08019.92
7.0.70.0130.05319.90
7.0.60.0200.04719.89
7.0.50.0100.05320.25
7.0.40.0070.05320.18
7.0.30.0030.09020.11
7.0.20.0000.05320.18
7.0.10.0030.04020.18
7.0.00.0100.05720.07
5.6.280.0070.07021.04
5.6.250.0130.07720.50
5.6.240.0070.07320.71
5.6.230.0030.07720.66
5.6.220.0100.05020.63
5.6.210.0130.04020.75
5.6.200.0030.04720.96
5.6.190.0100.03721.07
5.6.180.0000.04720.97
5.6.170.0030.04021.06
5.6.160.0170.03021.15
5.6.150.0070.03721.00
5.6.140.0100.04020.95
5.6.130.0100.03721.14
5.6.120.0100.04020.96
5.6.110.0030.04321.02
5.6.100.0000.04321.09
5.6.90.0030.04320.93
5.6.80.0070.03720.44
5.6.70.0030.04020.52
5.6.60.0000.04320.42
5.6.50.0070.03320.53
5.6.40.0100.03720.50
5.6.30.0000.04320.43
5.6.20.0000.04320.45
5.6.10.0070.03020.39
5.6.00.0000.04020.28
5.5.380.0130.08320.34
5.5.370.0100.04720.52
5.5.360.0170.06020.54
5.5.350.0100.04320.39
5.5.340.0030.04020.85
5.5.330.0070.06320.78
5.5.320.0030.04020.65
5.5.310.0100.07720.74
5.5.300.0030.04020.64
5.5.290.0070.04020.92
5.5.280.0100.04320.80
5.5.270.0030.04320.90
5.5.260.0030.04320.83
5.5.250.0070.04020.75
5.5.240.0130.03020.23
5.5.230.0130.05020.30
5.5.220.0070.05720.26
5.5.210.0000.03720.25
5.5.200.0100.03320.14
5.5.190.0030.03320.16
5.5.180.0030.04720.16
5.5.160.0030.03720.13
5.5.150.0030.05020.18
5.5.140.0100.03320.15
5.5.130.0070.07720.23
5.5.120.0030.06720.27
5.5.110.0100.03020.23
5.5.100.0000.07020.12
5.5.90.0070.07019.98
5.5.80.0030.08320.07
5.5.70.0030.08720.07
5.5.60.0130.07020.04
5.5.50.0070.05020.07
5.5.40.0030.07320.09
5.5.30.0070.04720.05
5.5.20.0130.06720.05
5.5.10.0030.07320.08
5.5.00.0030.05719.97
5.4.450.0070.04319.38
5.4.440.0030.04019.46
5.4.430.0030.04019.44
5.4.420.0100.03319.45
5.4.410.0070.05319.05
5.4.400.0100.03319.21
5.4.390.0030.04719.14
5.4.380.0070.03718.92
5.4.370.0100.02319.24
5.4.360.0030.08019.13
5.4.350.0030.03718.90
5.4.340.0000.04019.24
5.4.320.0100.04019.16
5.4.310.0000.03319.19
5.4.300.0030.03718.85
5.4.290.0030.04018.95
5.4.280.0030.04018.85
5.4.270.0070.03319.16
5.4.260.0030.04019.14
5.4.250.0070.07719.12
5.4.240.0030.08018.90
5.4.230.0100.07019.03
5.4.220.0130.06718.87
5.4.210.0030.08319.05
5.4.200.0100.06318.87
5.4.190.0100.07019.04
5.4.180.0030.07718.95
5.4.170.0070.07019.20
5.4.160.0170.06718.93
5.4.150.0100.07018.88
5.4.140.0100.07016.46
5.4.130.0130.06716.45
5.4.120.0000.07316.43
5.4.110.0070.06016.48
5.4.100.0070.06316.51
5.4.90.0070.07016.47
5.4.80.0130.06016.43
5.4.70.0000.05016.38
5.4.60.0070.04016.25
5.4.50.0000.03716.52
5.4.40.0000.07316.37
5.4.30.0100.07316.36
5.4.20.0030.07316.45
5.4.10.0100.07316.36
5.4.00.0070.06315.84
5.3.290.0000.04314.74
5.3.280.0030.07714.63
5.3.270.0200.06714.73
5.3.260.0100.07014.63
5.3.250.0070.07314.62
5.3.240.0030.07314.75
5.3.230.0000.08014.63
5.3.220.0030.07714.60
5.3.210.0030.07014.63
5.3.200.0030.05714.70
5.3.190.0170.06314.63
5.3.180.0030.07314.63
5.3.170.0030.08014.54
5.3.160.0070.07314.50
5.3.150.0170.06014.55
5.3.140.0070.07314.56
5.3.130.0030.07714.57
5.3.120.0030.07714.49
5.3.110.0070.07714.53
5.3.100.0070.03314.12
5.3.90.0000.07714.06
5.3.80.0070.07014.02
5.3.70.0030.07314.16
5.3.60.0070.07314.00
5.3.50.0070.05713.97
5.3.40.0070.07313.84
5.3.30.0070.06013.97
5.3.20.0000.04013.68
5.3.10.0030.07313.72
5.3.00.0100.03013.55
5.2.170.0030.06011.18
5.2.160.0030.06011.21
5.2.150.0030.06011.14
5.2.140.0030.06311.29
5.2.130.0100.05011.04
5.2.120.0000.05011.02
5.2.110.0070.05311.20
5.2.100.0030.06011.10
5.2.90.0030.06011.00
5.2.80.0100.05711.14
5.2.70.0030.06011.25
5.2.60.0100.02010.95
5.2.50.0070.06011.14
5.2.40.0000.04011.01
5.2.30.0030.06011.05
5.2.20.0100.05310.88
5.2.10.0030.06310.84
5.2.00.0030.06310.88
5.1.60.0000.02710.02
5.1.50.0000.05710.04
5.1.40.0100.04310.02
5.1.30.0000.03710.46
5.1.20.0000.06010.35
5.1.10.0070.05710.20
5.1.00.0070.04710.18
5.0.50.0000.0408.40
5.0.40.0000.0408.54
5.0.30.0000.0608.25
5.0.20.0070.0408.20
5.0.10.0030.0438.28
5.0.00.0070.0608.24
4.4.90.0070.0107.95
4.4.80.0030.0337.95
4.4.70.0000.0377.95
4.4.60.0070.0307.95
4.4.50.0000.0377.95
4.4.40.0000.0507.95
4.4.30.0000.0377.95
4.4.20.0030.0337.95
4.4.10.0030.0377.95
4.4.00.0030.0507.95
4.3.110.0100.0277.95
4.3.100.0030.0177.95
4.3.90.0030.0337.95
4.3.80.0030.0477.95
4.3.70.0030.0337.95
4.3.60.0030.0307.95
4.3.50.0000.0377.95
4.3.40.0000.0477.95
4.3.30.0070.0237.95
4.3.20.0000.0377.95
4.3.10.0000.0377.95
4.3.00.0070.0137.95

preferences:
41.38 ms | 401 KiB | 5 Q