3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { echo 'yes' . $this->hi; } public function fizz() { $this->hi = 'h'; static::bar(); } } $f = new Foo(); $f->fizz();

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.0040.01116.88
8.3.50.0130.00721.24
8.3.40.0070.00718.96
8.3.30.0120.00318.70
8.3.20.0000.00720.21
8.3.10.0080.00023.66
8.3.00.0080.00022.50
8.2.180.0030.01316.63
8.2.170.0130.00322.96
8.2.160.0110.00320.49
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.50
8.2.110.0000.01019.38
8.2.100.0040.00817.63
8.2.90.0000.00719.22
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00717.68
8.2.50.0030.00618.07
8.2.40.0040.00421.07
8.2.30.0000.00719.91
8.2.20.0040.00417.61
8.2.10.0070.00018.03
8.2.00.0000.00817.98
8.1.280.0140.00325.92
8.1.270.0030.00520.38
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00021.00
8.1.230.0050.00517.42
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0000.00721.85
8.1.150.0000.00718.80
8.1.140.0030.00517.29
8.1.130.0040.00417.63
8.1.120.0000.00717.40
8.1.110.0000.00717.38
8.1.100.0030.00317.42
8.1.90.0070.00017.33
8.1.80.0030.00317.35
8.1.70.0040.00417.38
8.1.60.0000.00817.59
8.1.50.0040.00717.53
8.1.40.0000.00717.57
8.1.30.0090.00017.45
8.1.20.0040.00417.59
8.1.10.0070.00017.51
8.1.00.0050.00517.58
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00518.45
8.0.270.0070.00017.25
8.0.260.0060.00017.25
8.0.250.0070.00016.86
8.0.240.0000.00716.96
8.0.230.0030.00316.94
8.0.220.0030.00316.77
8.0.210.0000.00716.79
8.0.200.0000.00616.97
8.0.190.0040.00416.84
8.0.180.0040.00416.91
8.0.170.0000.00816.87
8.0.160.0070.00016.91
8.0.150.0000.00716.82
8.0.140.0070.00016.80
8.0.130.0000.00613.30
8.0.120.0000.00816.89
8.0.110.0030.00516.89
8.0.100.0040.00416.72
8.0.90.0040.00416.81
8.0.80.0050.01016.82
8.0.70.0040.00416.67
8.0.60.0000.00716.77
8.0.50.0000.00716.84
8.0.30.0090.00817.07
8.0.20.0100.01017.40
8.0.10.0070.00016.88
8.0.00.0100.00916.77
7.4.330.0000.00615.14
7.4.320.0000.00616.38
7.4.300.0000.00716.59
7.4.290.0070.00316.46
7.4.280.0040.00416.55
7.4.270.0050.00216.57
7.4.260.0000.00716.44
7.4.250.0080.00016.39
7.4.240.0050.00316.46
7.4.230.0030.00316.24
7.4.220.0060.00916.51
7.4.210.0120.00616.50
7.4.200.0000.00716.61
7.4.160.0100.00716.43
7.4.150.0140.00317.40
7.4.140.0140.00817.86
7.4.130.0090.00816.58
7.4.120.0100.00716.48
7.4.110.0110.00716.34
7.4.100.0190.00416.59
7.4.90.0110.00616.35
7.4.80.0170.00619.39
7.4.70.0110.01216.69
7.4.60.0190.00316.50
7.4.50.0000.00816.19
7.4.40.0080.00816.41
7.4.30.0070.01116.46
7.4.00.0090.00914.65
7.3.330.0060.00013.16
7.3.320.0040.00413.33
7.3.310.0000.00716.11
7.3.300.0030.00316.17
7.3.290.0050.01016.24
7.3.280.0080.01016.25
7.3.270.0080.00817.40
7.3.260.0100.01016.27
7.3.250.0120.00716.38
7.3.240.0130.00916.50
7.3.230.0090.01016.41
7.3.210.0130.01016.49
7.3.200.0130.00319.39
7.3.190.0090.01216.30
7.3.180.0110.00416.44
7.3.170.0040.01216.50
7.3.160.0060.01216.30
7.3.10.0000.01116.68
7.3.00.0070.00716.53
7.2.330.0130.00916.52
7.2.320.0100.00916.53
7.2.310.0090.00916.74
7.2.300.0030.01216.52
7.2.290.0060.01016.52
7.2.130.0030.01216.71
7.2.120.0040.00416.58
7.2.110.0070.00716.85
7.2.100.0070.00716.98
7.2.90.0030.01016.85
7.2.80.0110.00317.01
7.2.70.0040.00916.99
7.2.60.0060.00317.09
7.2.50.0000.01117.06
7.2.40.0000.01417.11
7.2.30.0090.00316.95
7.2.20.0030.01016.79
7.2.10.0130.00317.07
7.2.00.0040.00918.21
7.1.250.0030.00715.76
7.1.100.0090.00618.19
7.1.70.0050.00317.04
7.1.60.0030.00717.31
7.1.50.0000.01116.59
7.1.00.0030.07322.44
7.0.200.0100.01016.80
7.0.60.0070.06020.04
7.0.50.0000.07017.87
7.0.40.0070.04020.21
7.0.30.0500.07020.23
7.0.20.0270.08320.07
7.0.10.0030.04320.23
7.0.00.0130.08320.09
5.6.280.0070.05721.13
5.6.210.0170.07320.48
5.6.200.0000.08018.19
5.6.190.0000.04720.61
5.6.180.0200.06020.48
5.6.170.0300.07320.47
5.6.160.0070.04020.43
5.6.150.0030.08718.15
5.6.140.0100.04018.27
5.6.130.0070.08318.18
5.6.120.0100.08020.98
5.6.110.0130.07320.96
5.6.100.0070.04021.00
5.6.90.0030.08720.95
5.6.80.0130.07020.40
5.6.70.4070.04320.42
5.5.350.0230.08720.50
5.5.340.0130.07717.94
5.5.330.0130.08020.47
5.5.320.0330.04720.35
5.5.310.0400.07720.34
5.5.300.0070.08718.01
5.5.290.0070.07717.99
5.5.280.0070.07720.77
5.5.270.0070.06020.84
5.5.260.0070.07720.88
5.5.250.0100.07720.58
5.5.240.0330.05020.28
5.4.450.0630.05719.45
5.4.440.0730.06319.57
5.4.430.0670.05319.16
5.4.420.0600.06019.54
5.4.410.0730.04719.31
5.4.400.0970.05319.25
5.4.390.0700.05319.28
5.4.380.0570.06019.24
5.4.370.0670.05019.24
5.4.360.0630.05719.09
5.4.350.0800.05318.84
5.4.340.0770.04318.84
5.4.320.0630.05718.84
5.4.310.0870.04719.11
5.4.300.0800.05019.19
5.4.290.0770.05319.03
5.4.280.0900.06719.23
5.4.270.0930.04719.16
5.4.260.0830.05719.23
5.4.250.0970.06319.27
5.4.240.0800.08019.27
5.4.230.0700.05719.32
5.4.220.0700.06319.35
5.4.210.0900.06018.80
5.4.200.0800.05316.74
5.4.190.0830.05019.07
5.4.180.0800.05719.17
5.4.170.0870.07018.93
5.4.160.0770.05318.79
5.4.150.0770.05719.19
5.4.140.0800.04016.26
5.4.130.0870.06016.33
5.4.120.0770.06016.51
5.4.110.0630.05316.33
5.4.100.0800.05716.30
5.4.90.0770.05316.34
5.4.80.0730.05316.44
5.4.70.0730.05716.48
5.4.60.0030.07016.49
5.4.50.0000.03716.51
5.4.40.0170.03716.39
5.4.30.0300.04316.55
5.4.20.0270.06716.23

preferences:
38.74 ms | 401 KiB | 5 Q