3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() {} } (new Foo())->bar(); ($foo = new Foo())->bar();

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.01816.50
8.3.50.0090.01021.08
8.3.40.0120.00418.72
8.3.30.0040.01118.59
8.3.20.0140.00020.34
8.3.10.0070.00021.73
8.3.00.0050.00221.63
8.2.180.0090.00616.50
8.2.170.0110.00422.96
8.2.160.0070.00720.45
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00820.65
8.2.120.0040.00426.35
8.2.110.0050.00519.33
8.2.100.0040.00817.92
8.2.90.0030.00519.14
8.2.80.0030.00517.97
8.2.70.0060.00317.38
8.2.60.0060.00317.88
8.2.50.0060.00318.09
8.2.40.0040.00422.10
8.2.30.0000.00719.41
8.2.20.0000.00717.48
8.2.10.0000.00718.04
8.2.00.0030.00517.93
8.1.280.0140.01025.92
8.1.270.0150.00422.19
8.1.260.0090.00028.09
8.1.250.0000.00928.09
8.1.240.0030.00622.61
8.1.230.0100.00017.64
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0080.00017.00
8.1.180.0030.00618.10
8.1.170.0000.00818.46
8.1.160.0070.00020.54
8.1.150.0040.00420.45
8.1.140.0030.00519.58
8.1.130.0040.00417.57
8.1.120.0070.00017.42
8.1.110.0000.00717.42
8.1.100.0050.00217.27
8.1.90.0060.00317.28
8.1.80.0040.00417.35
8.1.70.0030.00317.36
8.1.60.0080.00017.57
8.1.50.0040.00417.54
8.1.40.0040.00417.39
8.1.30.0040.00417.67
8.1.20.0000.00717.58
8.1.10.0040.00417.44
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0070.00018.34
8.0.270.0000.00717.25
8.0.260.0000.00718.37
8.0.250.0060.00316.89
8.0.240.0040.00416.84
8.0.230.0000.00716.87
8.0.220.0070.00016.73
8.0.210.0040.00416.69
8.0.200.0000.00616.80
8.0.190.0080.00416.89
8.0.180.0030.00516.75
8.0.170.0000.00816.91
8.0.160.0000.00816.80
8.0.150.0040.00416.69
8.0.140.0030.00316.64
8.0.130.0000.00613.32
8.0.120.0000.00816.81
8.0.110.0030.00516.85
8.0.100.0080.00016.71
8.0.90.0040.00416.76
8.0.80.0000.01816.87
8.0.70.0000.00716.65
8.0.60.0060.00316.89
8.0.50.0050.00316.70
8.0.30.0090.01217.26
8.0.20.0050.01317.40
8.0.10.0050.00316.82
8.0.00.0130.00516.78
7.4.330.0000.00616.67
7.4.320.0000.00616.36
7.4.300.0030.00316.59
7.4.290.0000.00716.49
7.4.280.0040.00416.46
7.4.270.0060.00016.52
7.4.260.0070.00016.47
7.4.250.0050.00316.45
7.4.240.0000.00716.59
7.4.230.0030.00316.40
7.4.220.0110.00716.46
7.4.210.0030.01416.56
7.4.200.0070.00016.70
7.4.160.0040.01716.75
7.4.150.0150.00317.40
7.4.140.0080.01017.86
7.4.130.0120.01016.39
7.4.120.0120.00916.59
7.4.110.0090.01216.55
7.4.100.0070.01016.59
7.4.90.0100.00716.53
7.4.80.0140.00419.39
7.4.70.0060.00916.30
7.4.60.0070.01116.31
7.4.50.0130.00316.19
7.4.40.0140.00416.56
7.4.30.0120.00916.62
7.4.00.0030.01414.92
7.3.330.0020.00213.19
7.3.320.0060.00013.19
7.3.310.0040.00416.27
7.3.300.0000.00616.09
7.3.290.0000.00716.09
7.3.280.0090.00816.19
7.3.270.0100.00717.40
7.3.260.0070.01116.24
7.3.250.0120.00816.37
7.3.240.0020.01516.54
7.3.230.0060.01316.48
7.3.210.0060.01216.31
7.3.200.0070.01019.39
7.3.190.0030.01716.39
7.3.180.0030.01316.11
7.3.170.0070.01416.17
7.3.160.0090.00716.09
7.2.330.0070.01016.32
7.2.320.0030.01716.65
7.2.310.0080.00816.50
7.2.300.0140.00316.33
7.2.290.0070.01416.40
7.2.110.0100.01016.42
7.2.60.0070.01016.71
7.2.00.0030.00919.37
7.1.200.0030.00715.77
7.1.100.0030.01018.06
7.1.70.0080.00417.18
7.1.60.0150.01119.40
7.1.50.0070.00416.54
7.1.00.0000.07722.57
7.0.200.0030.00616.61
7.0.60.0300.07321.83
7.0.50.0030.05717.95
7.0.40.0170.08020.13
7.0.30.0330.07320.06
7.0.20.0270.05320.15
7.0.10.0170.06720.21
7.0.00.0170.07720.07
5.6.280.0000.03320.89
5.6.210.0100.07720.51
5.6.200.0070.06718.16
5.6.190.0070.07720.42
5.6.180.0200.05720.68
5.6.170.0170.04720.72
5.6.160.0070.06020.51
5.6.150.0000.04318.19
5.6.140.0100.08018.17
5.6.130.0100.08318.19
5.6.120.0100.04021.04
5.6.110.0070.07021.12
5.6.100.0000.10021.11
5.6.90.0030.08320.97
5.6.80.0030.03720.38
5.5.350.0230.06020.37
5.5.340.0130.05317.94
5.5.330.0070.04720.27
5.5.320.0730.06020.34
5.5.310.0330.06320.21
5.5.300.0130.04717.95
5.5.290.0200.07018.08
5.5.280.0070.08720.80
5.5.270.0000.04320.87
5.5.260.0030.06020.76
5.5.250.0070.03720.61
5.5.240.0200.07320.04

preferences:
49.92 ms | 401 KiB | 5 Q