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 $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.0040.01116.75
8.3.50.0110.01221.04
8.3.40.0110.00418.92
8.3.30.0090.00618.85
8.3.20.0030.00520.21
8.3.10.0060.00321.73
8.3.00.0060.00322.34
8.2.180.0100.01018.16
8.2.170.0050.01022.96
8.2.160.0030.01720.33
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00417.38
8.2.110.0050.00522.07
8.2.100.0120.00017.50
8.2.90.0020.00519.25
8.2.80.0030.00517.97
8.2.70.0050.00317.60
8.2.60.0000.00817.80
8.2.50.0000.01118.07
8.2.40.0000.00821.13
8.2.30.0040.00419.74
8.2.20.0000.00717.60
8.2.10.0050.00318.05
8.2.00.0080.00017.91
8.1.280.0070.01025.92
8.1.270.0180.00020.33
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00319.01
8.1.230.0040.00817.42
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0000.00818.54
8.1.160.0030.00722.03
8.1.150.0040.00418.73
8.1.140.0080.00017.28
8.1.130.0000.00717.62
8.1.120.0090.00317.22
8.1.110.0040.00417.23
8.1.100.0040.00417.24
8.1.90.0030.00417.26
8.1.80.0080.00017.40
8.1.70.0030.00317.23
8.1.60.0080.00017.55
8.1.50.0000.00817.47
8.1.40.0050.00417.48
8.1.30.0080.00017.58
8.1.20.0050.00217.42
8.1.10.0040.00417.56
8.1.00.0000.00817.46
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00718.27
8.0.270.0050.00317.09
8.0.260.0030.00317.20
8.0.250.0000.00716.93
8.0.240.0040.00416.89
8.0.230.0000.00716.93
8.0.220.0040.00416.78
8.0.210.0040.00416.85
8.0.200.0070.00016.94
8.0.190.0000.00816.84
8.0.180.0030.00516.82
8.0.170.0030.00316.75
8.0.160.0000.00716.93
8.0.150.0000.00716.84
8.0.140.0040.00416.74
8.0.130.0030.00313.28
8.0.120.0030.00616.88
8.0.110.0080.00016.84
8.0.100.0040.00416.71
8.0.90.0040.00416.86
8.0.80.0180.00316.89
8.0.70.0000.00816.90
8.0.60.0030.00316.77
8.0.50.0040.00416.76
8.0.30.0090.01116.92
8.0.20.0120.01017.40
8.0.10.0000.00716.88
8.0.00.0090.01216.70
7.4.330.0030.00315.08
7.4.320.0030.00316.40
7.4.300.0000.00616.33
7.4.290.0000.00716.39
7.4.280.0040.00416.44
7.4.270.0030.00316.57
7.4.260.0000.00716.45
7.4.250.0050.00216.38
7.4.240.0000.00716.46
7.4.230.0030.00416.65
7.4.220.0060.01216.39
7.4.210.0090.00716.62
7.4.200.0000.00716.35
7.4.160.0030.01316.42
7.4.150.0170.00617.40
7.4.140.0120.00817.86
7.4.130.0190.00216.43
7.4.120.0110.00616.52
7.4.110.0100.00716.51
7.4.100.0090.00916.34
7.4.90.0090.00816.52
7.4.80.0060.01019.39
7.4.70.0070.01016.50
7.4.60.0060.01116.41
7.4.50.0060.00316.21
7.4.40.0100.00616.44
7.4.30.0100.01016.46
7.4.00.0070.00914.80
7.3.330.0000.00613.22
7.3.320.0030.00313.14
7.3.310.0040.00316.26
7.3.300.0030.00316.23
7.3.290.0030.00316.36
7.3.280.0090.01016.37
7.3.270.0070.01117.40
7.3.260.0100.00716.36
7.3.250.0110.01016.27
7.3.240.0060.01016.31
7.3.230.0100.00716.39
7.3.210.0130.00316.29
7.3.200.0090.00919.39
7.3.190.0060.01716.55
7.3.180.0080.00816.61
7.3.170.0100.00616.39
7.3.160.0000.01616.35
7.3.120.0100.01014.75
7.3.110.0000.01214.70
7.3.100.0110.00415.01
7.3.90.0030.00614.73
7.3.80.0030.01014.95
7.3.70.0060.00614.59
7.3.60.0030.01014.89
7.3.50.0000.01014.86
7.3.40.0040.01114.92
7.3.30.0090.00614.75
7.3.20.0060.00316.47
7.3.10.0030.00716.53
7.3.00.0040.01216.27
7.2.330.0030.01916.48
7.2.320.0120.00916.58
7.2.310.0110.00716.68
7.2.300.0110.00616.70
7.2.290.0060.01516.68
7.2.250.0070.01114.82
7.2.240.0090.01314.60
7.2.230.0100.00615.01
7.2.220.0040.00414.82
7.2.210.0030.01414.89
7.2.200.0100.00715.00
7.2.190.0060.00314.85
7.2.180.0060.00614.93
7.2.170.0090.00014.65
7.2.60.0000.01416.86
7.2.00.0040.01219.30
7.1.330.0060.00915.47
7.1.320.0030.01015.82
7.1.310.0030.00915.71
7.1.300.0070.00315.74
7.1.290.0080.00415.61
7.1.280.0040.00815.48
7.1.270.0080.00615.64
7.1.260.0040.00715.35
7.1.200.0080.00415.74
7.1.100.0090.00317.52
7.1.70.0000.00816.84
7.1.60.0140.01120.03
7.1.50.0120.00916.53
7.1.00.0000.08022.43
7.0.200.0410.00314.97
7.0.60.0000.08319.91
7.0.50.0030.09017.92
7.0.40.0130.08020.13
7.0.30.0300.04320.23
7.0.20.0070.05020.20
7.0.10.0070.08720.23
7.0.00.0070.04720.15
5.6.280.0100.06321.11
5.6.210.0170.06720.55
5.6.200.0070.06018.23
5.6.190.0030.09320.47
5.6.180.3400.04320.61
5.6.170.0230.04020.52
5.6.160.0030.08020.50
5.6.150.0130.07318.16
5.6.140.0100.07718.17
5.6.130.0100.07718.13
5.6.120.0130.07721.00
5.6.110.0100.08320.99
5.6.100.0030.04021.05
5.6.90.0130.07321.13
5.6.80.0000.04020.51
5.6.70.3770.04020.48
5.5.350.0170.03320.40
5.5.340.0100.05018.04
5.5.330.0070.06320.57
5.5.320.0470.07020.27
5.5.310.0200.08020.37
5.5.300.0100.07317.95
5.5.290.0100.06317.98
5.5.280.0030.04020.78
5.5.270.0070.07320.85
5.5.260.0100.08320.77
5.5.250.0100.07720.70
5.5.240.0200.03020.26
5.4.450.0100.05719.55
5.4.440.0630.05319.58
5.4.430.0730.07319.38
5.4.420.0870.05719.19
5.4.410.0970.05719.45
5.4.400.0670.06319.02
5.4.390.0970.05718.84
5.4.380.1000.04719.32
5.4.370.0930.05319.38
5.4.360.0730.05719.01
5.4.350.0930.05718.87
5.4.340.0930.04319.23
5.4.320.1030.05319.17
5.4.310.0700.05719.02
5.4.300.0570.06019.14
5.4.290.0430.05019.01
5.4.280.0270.04019.22
5.4.270.1000.05319.14
5.4.260.0600.06319.38
5.4.250.0470.08319.29
5.4.240.0970.06019.01
5.4.230.0800.05719.05
5.4.220.0870.07019.00
5.4.210.0800.06319.14
5.4.200.0930.06716.79
5.4.190.0830.05019.14
5.4.180.0730.05318.95
5.4.170.0700.04319.13
5.4.160.0970.05719.04
5.4.150.0670.06018.95
5.4.140.0730.05016.30
5.4.130.0770.05016.39
5.4.120.0570.05716.56
5.4.110.0830.05316.36
5.4.100.0600.06016.51
5.4.90.0900.05016.36
5.4.80.0870.05716.45
5.4.70.0630.05316.34
5.4.60.0300.07316.38
5.4.50.0030.05016.53
5.4.40.0000.07016.55
5.4.30.0100.04016.19
5.4.20.0330.06716.55

preferences:
50.56 ms | 401 KiB | 5 Q