3v4l.org

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

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.40.0030.01418.98
8.3.30.0090.00618.79
8.3.20.0100.00620.30
8.3.10.0070.00021.89
8.3.00.0030.00622.40
8.2.170.0030.01222.96
8.2.160.0100.01022.16
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00017.38
8.2.110.0040.00420.52
8.2.100.0090.00317.50
8.2.90.0040.00419.27
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0030.00517.66
8.2.50.0050.00318.07
8.2.40.0060.00321.25
8.2.30.0040.00419.78
8.2.20.0040.00417.75
8.2.10.0040.00417.98
8.2.00.0040.00418.05
8.1.270.0130.00320.23
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0110.00017.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0050.00318.51
8.1.160.0030.00522.01
8.1.150.0040.00418.79
8.1.140.0050.00317.32
8.1.130.0030.00317.51
8.1.120.0070.00217.44
8.1.110.0040.00417.41
8.1.100.0050.00217.45
8.1.90.0000.00817.35
8.1.80.0000.00717.28
8.1.70.0080.00017.43
8.1.60.0050.00317.57
8.1.50.0060.00317.58
8.1.40.0040.00417.55
8.1.30.0000.00817.59
8.1.20.0040.00417.48
8.1.10.0040.00417.43
8.1.00.0000.00817.47
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.29
8.0.270.0030.00517.11
8.0.260.0060.00017.20
8.0.250.0040.00416.95
8.0.240.0000.00717.02
8.0.230.0030.00316.92
8.0.220.0000.00716.88
8.0.210.0030.00316.95
8.0.200.0000.00616.95
8.0.190.0040.00416.94
8.0.180.0000.00816.89
8.0.170.0000.00816.89
8.0.160.0070.00016.85
8.0.150.0000.00716.79
8.0.140.0000.00716.75
8.0.130.0000.00513.29
8.0.120.0030.00616.81
8.0.110.0000.00716.72
8.0.100.0040.00416.85
8.0.90.0050.00216.69
8.0.80.0130.00316.84
8.0.70.0040.00416.93
8.0.60.0030.00716.98
8.0.50.0040.00416.75
8.0.30.0120.00717.03
8.0.20.0090.01017.40
8.0.10.0030.00516.84
8.0.00.0070.01016.81
7.4.330.0020.00215.08
7.4.320.0060.00016.51
7.4.300.0030.00316.50
7.4.290.0030.00316.41
7.4.280.0080.00016.58
7.4.270.0070.00016.61
7.4.260.0030.00316.52
7.4.250.0040.00416.38
7.4.240.0020.00616.47
7.4.230.0040.00416.59
7.4.220.0070.01116.49
7.4.210.0110.00816.61
7.4.200.0030.00316.59
7.4.160.0110.00516.44
7.4.150.0130.00617.40
7.4.140.0130.00717.86
7.4.130.0070.01016.40
7.4.120.0110.00616.50
7.4.110.0080.00816.39
7.4.100.0100.00716.41
7.4.90.0110.00616.52
7.4.80.0030.01319.39
7.4.70.0040.01816.49
7.4.60.0090.00616.56
7.4.50.0050.00316.52
7.4.40.0060.01016.43
7.4.30.0080.01616.38
7.4.00.0110.00315.12
7.3.330.0050.00013.28
7.3.320.0030.00313.35
7.3.310.0000.00716.25
7.3.300.0000.00716.40
7.3.290.0030.00316.37
7.3.280.0100.00916.40
7.3.270.0110.00817.40
7.3.260.0140.00316.53
7.3.250.0100.00616.42
7.3.240.0030.01316.36
7.3.230.0110.00716.44
7.3.210.0130.00316.57
7.3.200.0040.01519.39
7.3.190.0060.01116.56
7.3.180.0070.01016.34
7.3.170.0030.01316.38
7.3.160.0150.00616.28
7.3.120.0070.00714.76
7.3.110.0000.01514.61
7.3.100.0060.00614.77
7.3.90.0120.00314.87
7.3.80.0080.00414.89
7.3.70.0090.00314.78
7.3.60.0040.01114.84
7.3.50.0060.00614.76
7.3.40.0090.00314.77
7.3.30.0090.00414.82
7.3.20.0090.00316.38
7.3.10.0110.00016.36
7.3.00.0120.00016.61
7.2.330.0150.00916.66
7.2.320.0100.01016.36
7.2.310.0130.01016.76
7.2.300.0040.01216.51
7.2.290.0070.01016.57
7.2.250.0080.00715.11
7.2.240.0000.01414.91
7.2.230.0090.00915.00
7.2.220.0040.01115.20
7.2.210.0030.01314.89
7.2.200.0070.00714.66
7.2.190.0070.01014.99
7.2.180.0090.00315.10
7.2.170.0090.00314.94
7.2.160.0060.00914.85
7.2.150.0090.00016.70
7.2.140.0070.00716.97
7.2.130.0030.01216.78
7.2.120.0000.00917.00
7.2.110.0030.00616.69
7.2.100.0060.00616.79
7.2.90.0070.01116.74
7.2.80.0090.00317.05
7.2.70.0070.00717.02
7.2.60.0030.00916.94
7.2.50.0030.00616.79
7.2.40.0060.00616.62
7.2.30.0000.01616.87
7.2.20.0070.00316.91
7.2.10.0070.00716.72
7.2.00.0070.00718.02
7.1.330.0060.00615.47
7.1.320.0000.01815.92
7.1.310.0030.00815.58
7.1.300.0070.00415.64
7.1.290.0030.00515.63
7.1.280.0000.00815.47
7.1.270.0070.00415.61
7.1.260.0040.01115.56
7.1.250.0030.00915.41
7.1.200.0080.00315.57
7.1.100.0030.01017.75
7.1.70.0000.00816.75
7.1.60.0100.01420.03
7.1.50.0100.01016.89
7.1.00.0030.07722.37
7.0.200.0740.00314.97
7.0.60.0100.04720.07
7.0.50.0030.04017.90
7.0.40.0070.07720.07
7.0.30.0500.06320.12
7.0.20.0370.07320.06
7.0.10.0100.08020.16
7.0.00.0130.08020.10
5.6.280.0070.06720.94
5.6.210.0030.07020.50
5.6.200.0030.04018.12
5.6.190.0030.05020.41
5.6.180.0300.08320.47
5.6.170.0230.03320.57
5.6.160.0070.04720.46
5.6.150.0100.03318.30
5.6.140.0100.06718.18
5.6.130.0070.04318.21
5.6.120.0030.04320.97
5.6.110.0100.05721.02
5.6.100.0170.07021.14
5.6.90.0170.07321.00
5.6.80.0100.04020.52
5.6.70.3070.03320.40
5.5.350.0030.06720.39
5.5.340.0030.03718.06
5.5.330.0000.08020.57
5.5.320.0400.06720.35
5.5.310.0170.09320.19
5.5.300.0070.05018.05
5.5.290.0070.04318.07
5.5.280.0130.06720.86
5.5.270.0100.08020.80
5.5.260.0130.06720.76
5.5.250.0070.08020.70
5.5.240.4300.03320.08
5.4.450.0730.06319.58
5.4.440.0570.05319.63
5.4.430.0430.05319.58
5.4.420.0700.05319.43
5.4.410.0370.05719.48
5.4.400.0270.05019.16
5.4.390.0230.05318.98
5.4.380.0530.06319.38
5.4.370.0270.07019.12
5.4.360.0230.06319.26
5.4.350.0170.05719.15
5.4.340.0500.07018.86
5.4.320.0170.06019.09
5.4.310.0370.05719.14
5.4.300.0170.05719.21
5.4.290.0300.04719.14
5.4.280.0330.06319.30
5.4.270.0130.05719.28
5.4.260.0270.06019.11
5.4.250.0230.04718.85
5.4.240.0070.06319.25
5.4.230.0100.06018.98
5.4.220.0230.04719.24
5.4.210.0200.05018.89
5.4.200.0270.04316.70
5.4.190.0230.04319.12
5.4.180.0230.04318.99
5.4.170.0200.04718.83
5.4.160.0130.05319.30
5.4.150.0170.05319.28
5.4.140.0070.06016.37
5.4.130.0200.04716.49
5.4.120.0100.05716.50
5.4.110.0170.05016.46
5.4.100.0170.05016.47
5.4.90.0130.06016.43
5.4.80.0130.06016.67
5.4.70.0130.06016.46
5.4.60.0130.04016.49
5.4.50.0070.06016.42
5.4.40.0030.07016.34
5.4.30.0070.06316.34
5.4.20.0270.03316.50

preferences:
46.67 ms | 400 KiB | 5 Q