3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $name; public function __construct($name) { $this->name = $name; } public function name($name) { return $this->name; } } $user = new Person; var_dump($user->name('chris'));

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.0130.00616.75
8.3.50.0130.00821.15
8.3.40.0090.00918.76
8.3.30.0120.00318.85
8.3.20.0110.00420.31
8.3.10.0090.00021.77
8.3.00.0000.01022.30
8.2.180.0090.01318.16
8.2.170.0070.01122.96
8.2.160.0100.00320.57
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0090.00017.50
8.2.110.0030.00720.25
8.2.100.0060.00617.63
8.2.90.0030.00619.22
8.2.80.0000.01317.97
8.2.70.0040.00417.62
8.2.60.0120.00317.55
8.2.50.0050.00318.07
8.2.40.0030.00521.17
8.2.30.0040.00419.85
8.2.20.0060.00317.55
8.2.10.0000.00817.89
8.2.00.0040.00417.92
8.1.280.0140.00725.92
8.1.270.0000.00724.66
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0000.00923.92
8.1.230.0000.01217.42
8.1.220.0050.00217.74
8.1.210.0040.00718.77
8.1.200.0000.00817.23
8.1.190.0050.00517.13
8.1.180.0040.00418.10
8.1.170.0000.00818.36
8.1.160.0050.00521.94
8.1.150.0070.00018.75
8.1.140.0000.00917.33
8.1.130.0030.00317.67
8.1.120.0040.00417.27
8.1.110.0040.00417.23
8.1.100.0000.00817.27
8.1.90.0040.00417.39
8.1.80.0040.00317.20
8.1.70.0000.00717.21
8.1.60.0000.00817.46
8.1.50.0030.00617.46
8.1.40.0000.00817.37
8.1.30.0000.00917.55
8.1.20.0040.00417.48
8.1.10.0040.00417.54
8.1.00.0030.00617.43
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0030.00318.38
8.0.270.0030.00517.07
8.0.260.0000.00617.15
8.0.250.0000.00816.98
8.0.240.0000.00716.85
8.0.230.0040.00416.93
8.0.220.0070.00016.86
8.0.210.0080.00016.89
8.0.200.0000.00716.84
8.0.190.0000.00716.92
8.0.180.0000.00816.89
8.0.170.0040.00416.88
8.0.160.0000.00716.81
8.0.150.0030.00516.82
8.0.140.0040.00416.74
8.0.130.0000.00513.32
8.0.120.0000.00816.84
8.0.110.0050.00216.93
8.0.100.0040.00416.76
8.0.90.0030.00516.95
8.0.80.0070.00716.86
8.0.70.0040.00416.77
8.0.60.0040.00416.69
8.0.50.0040.00416.91
8.0.30.0100.00817.17
8.0.20.0090.00917.40
8.0.10.0040.00416.96
8.0.00.0080.01116.73
7.4.330.0000.00615.08
7.4.320.0000.00616.39
7.4.300.0000.00616.54
7.4.290.0050.00316.34
7.4.280.0000.00816.46
7.4.270.0030.00316.35
7.4.260.0040.00416.41
7.4.250.0000.00816.30
7.4.240.0000.00716.45
7.4.230.0000.00716.64
7.4.220.0090.00916.64
7.4.210.0090.00716.50
7.4.200.0000.00716.52
7.4.160.0040.01316.51
7.4.150.0180.00017.40
7.4.140.0120.00717.86
7.4.130.0090.00916.49
7.4.120.0070.01016.49
7.4.110.0140.00416.65
7.4.100.0060.01216.66
7.4.90.0120.00616.34
7.4.80.0070.01019.39
7.4.70.0170.00616.37
7.4.60.0040.01216.40
7.4.50.0030.00516.39
7.4.40.0040.01216.64
7.4.30.0040.01416.46
7.4.00.0070.00314.89
7.3.330.0000.00613.22
7.3.320.0050.00013.35
7.3.310.0020.00516.34
7.3.300.0000.00616.27
7.3.290.0050.00216.31
7.3.280.0110.00816.34
7.3.270.0150.00917.40
7.3.260.0140.00416.24
7.3.250.0170.00516.38
7.3.240.0070.01316.29
7.3.230.0130.00916.54
7.3.210.0090.01216.49
7.3.200.0150.00919.39
7.3.190.0130.00916.49
7.3.180.0080.00816.50
7.3.170.0100.01016.45
7.3.160.0030.01616.46
7.2.330.0170.00816.30
7.2.320.0060.01216.56
7.2.310.0070.00816.46
7.2.300.0140.00316.67
7.2.290.0040.01316.55
7.2.60.0060.00616.74
7.1.200.0030.01015.34
7.1.70.0000.00817.04
7.1.60.0060.01620.03
7.1.50.0090.01316.87
7.1.00.0100.06722.31
7.0.200.0230.00814.97
7.0.60.0170.07319.96
7.0.50.0130.04317.92
7.0.40.0100.06319.96
7.0.30.0270.04320.17
7.0.20.0230.05020.31
7.0.10.0100.07720.19
7.0.00.0070.04020.36
5.6.280.0030.07321.02
5.6.210.0100.08020.77
5.6.200.0100.06318.18
5.6.190.0070.04020.39
5.6.180.4130.04020.68
5.6.170.0270.08020.44
5.6.160.0070.05320.46
5.6.150.0000.05018.18
5.6.140.0100.08318.18
5.6.130.0000.05718.23
5.6.120.0030.06720.99
5.6.110.0070.04320.99
5.6.100.0070.06721.13
5.6.90.0030.09021.04
5.6.80.0100.06720.40
5.5.350.0000.08020.29
5.5.340.0000.05718.10
5.5.330.0070.05320.13
5.5.320.0070.07320.27
5.5.310.0300.04320.50
5.5.300.0030.04017.97
5.5.290.0070.03717.96
5.5.280.0030.09020.85
5.5.270.0000.06020.75
5.5.260.0070.05020.84
5.5.250.0100.07320.80
5.5.240.0030.07320.07
5.4.450.0770.06719.48
5.4.440.0570.06019.56
5.4.430.0670.06019.30
5.4.420.0500.07319.60
5.4.410.0930.05719.45
5.4.400.0830.05319.01
5.4.390.0700.06019.38
5.4.380.0770.07719.25
5.4.370.1030.05718.84
5.4.360.0800.05718.84
5.4.350.0500.06319.29
5.4.340.1130.05719.26
5.4.320.0770.07019.17
5.4.310.1000.04019.07
5.4.300.0930.05019.29
5.4.290.1170.07319.38
5.4.280.0770.06019.23
5.4.270.0700.05019.00
5.4.260.0470.04718.86
5.4.250.0230.05718.97
5.4.240.0800.05719.12
5.4.230.0870.05719.14
5.4.220.0800.05719.13
5.4.210.0900.05318.99
5.4.200.0670.05316.66
5.4.190.0600.06719.23
5.4.180.0900.07019.14
5.4.170.0870.05019.09
5.4.160.0800.05718.96
5.4.150.0570.05719.31
5.4.140.0800.06016.49
5.4.130.0900.04016.50
5.4.120.0800.05316.53
5.4.110.0530.04016.36
5.4.100.0000.06016.40
5.4.90.0300.06316.51
5.4.80.0870.05716.37
5.4.70.0600.06016.26
5.4.60.0200.07016.31
5.4.50.0100.02716.54
5.4.40.0270.07316.53
5.4.30.0270.06716.55
5.4.20.0230.03316.37
5.4.10.0200.05016.53

preferences:
67.23 ms | 401 KiB | 5 Q