3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fruit { public $name; public $color; function __construct($name) { $this->name = $name; } function get_name() { return $this->name; } } $apple = new Fruit("Apple"); echo $apple->get_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.60.0090.00618.30
8.3.50.0120.00918.45
8.3.40.0160.00618.57
8.3.30.0060.00918.69
8.3.20.0050.00324.18
8.3.10.0100.00024.66
8.3.00.0080.00026.16
8.2.180.0090.01225.92
8.2.170.0040.01118.83
8.2.160.0100.00722.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00726.35
8.2.110.0050.00519.21
8.2.100.0000.01117.84
8.2.90.0000.00817.63
8.2.80.0050.00318.63
8.2.70.0040.00417.50
8.2.60.0050.00317.63
8.2.50.0040.00418.05
8.2.40.0050.00218.09
8.2.30.0050.00317.98
8.2.20.0040.00418.12
8.2.10.0000.00719.06
8.2.00.0040.00419.18
8.1.280.0070.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0110.00019.14
8.1.230.0090.00320.98
8.1.220.0000.00818.64
8.1.210.0040.00418.77
8.1.200.0040.00417.51
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00718.64
8.1.160.0000.00718.75
8.1.150.0040.00418.89
8.1.140.0030.00618.71
8.1.130.0030.00320.12
8.1.120.0030.00517.41
8.1.110.0030.00517.37
8.1.100.0000.00717.34
8.1.90.0040.00417.31
8.1.80.0000.00717.47
8.1.70.0000.00717.27
8.1.60.0080.00017.58
8.1.50.0000.00817.49
8.1.40.0040.00417.41
8.1.30.0040.00417.56
8.1.20.0000.00717.55
8.1.10.0070.00317.61
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0050.00316.62
8.0.280.0050.00318.48
8.0.270.0040.00417.93
8.0.260.0030.00318.45
8.0.250.0030.00316.93
8.0.240.0070.00316.89
8.0.230.0070.00016.81
8.0.220.0000.00716.86
8.0.210.0000.00716.86
8.0.200.0070.00016.91
8.0.190.0080.00016.77
8.0.180.0070.00016.76
8.0.170.0000.01016.83
8.0.160.0030.00316.89
8.0.150.0000.00716.66
8.0.140.0040.00416.69
8.0.130.0030.00313.20
8.0.120.0000.00816.71
8.0.110.0030.00616.80
8.0.100.0000.00716.92
8.0.90.0020.00516.95
8.0.80.0050.01016.80
8.0.70.0000.00816.79
8.0.60.0000.00716.81
8.0.50.0040.00416.89
8.0.30.0150.00317.39
8.0.20.0170.00517.19
8.0.10.0070.00017.01
8.0.00.0150.00916.82
7.4.330.0000.00415.55
7.4.320.0060.00016.57
7.4.300.0030.00316.65
7.4.290.0040.00416.48
7.4.280.0040.00416.43
7.4.270.0070.00016.57
7.4.260.0030.00313.29
7.4.250.0030.00316.55
7.4.240.0040.00416.59
7.4.230.0000.00716.35
7.4.220.0030.00316.51
7.4.210.0070.00816.58
7.4.200.0000.00816.63
7.4.130.0160.00216.50
7.4.120.0100.00716.66
7.4.110.0060.01016.43
7.4.100.0090.00616.41
7.4.90.0070.01016.55
7.4.80.0090.00919.39
7.4.70.0090.00816.55
7.4.60.0090.01516.23
7.4.50.0120.00916.57
7.4.40.0090.00916.45
7.4.30.0160.00616.52
7.4.20.0120.00816.43
7.4.10.0080.00816.39
7.4.00.0100.00716.45
7.3.330.0000.00716.30
7.3.320.0050.00013.23
7.3.310.0040.00416.24
7.3.300.0000.00716.11
7.3.290.0080.00716.24
7.3.260.0090.00916.46
7.3.240.0090.00916.34
7.3.230.0030.02016.41
7.3.210.0110.00716.40
7.3.200.0140.00316.38
7.3.190.0100.00916.19
7.3.180.0140.00616.35
7.3.170.0200.00316.14
7.3.160.0090.00916.07
7.3.150.0100.01016.26
7.3.140.0140.00316.45
7.3.130.0080.01116.35
7.3.120.0080.00816.22
7.3.110.0060.00916.22
7.3.100.0040.01316.37
7.3.90.0060.01216.37
7.3.80.0130.00416.20
7.3.70.0040.01416.48
7.3.60.0090.00816.30
7.3.50.0170.00616.27
7.3.40.0080.01116.15
7.3.30.0090.01316.26
7.3.20.0300.01216.34
7.3.10.0080.01116.37
7.3.00.0080.01216.23
7.2.330.0100.00716.61
7.2.310.0070.01316.76
7.2.300.0130.01316.55
7.2.290.0160.00616.82
7.2.280.0060.01216.55
7.2.270.0100.01316.80
7.2.260.0170.00316.87
7.2.250.0080.01216.75
7.2.240.0040.01616.36
7.2.230.0090.00816.59
7.2.220.0060.01216.68
7.2.210.0080.00816.38
7.2.200.0120.00616.50
7.2.190.0060.01216.46
7.2.180.0030.02116.63
7.2.170.0170.01016.55
7.2.160.0120.00916.79
7.2.150.0160.00616.68
7.2.140.0030.01716.73
7.2.130.0150.00816.59
7.2.120.0130.00716.58
7.2.110.0150.00916.70
7.2.100.0050.01616.77
7.2.90.0050.01416.45
7.2.80.0230.00716.54
7.2.70.0170.01016.58
7.2.60.0130.01316.52
7.2.50.0040.02316.55
7.2.40.0000.02216.45
7.2.30.0170.00716.63
7.2.20.0790.01016.88
7.2.10.0110.01516.61
7.2.00.0120.00816.84

preferences:
133.9 ms | 401 KiB | 5 Q