3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = new class() { public $name; public function getName() : string { return $this->name; } }; $B = new $A(); $B->name = 'matti'; var_dump($B->getName());

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.00916.75
8.3.50.0100.01221.11
8.3.40.0070.00718.67
8.3.30.0040.01118.66
8.3.20.0040.00420.25
8.3.10.0080.00021.77
8.3.00.0040.00423.65
8.2.180.0040.01118.17
8.2.170.0070.00722.96
8.2.160.0090.00620.43
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0090.00619.77
8.2.120.0040.00426.35
8.2.110.0060.00319.39
8.2.100.0090.00617.90
8.2.90.0080.00017.75
8.2.80.0060.00318.89
8.2.70.0080.00017.75
8.2.60.0040.00417.50
8.2.50.0040.00419.35
8.2.40.0000.00822.14
8.2.30.0000.00720.57
8.2.20.0040.00417.58
8.2.10.0000.00718.12
8.2.00.0000.00717.90
8.1.280.0150.00025.92
8.1.270.0040.00723.82
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0080.00322.03
8.1.230.0060.00620.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0090.00017.66
8.1.180.0030.00618.10
8.1.170.0030.00518.64
8.1.160.0030.00520.76
8.1.150.0040.00418.83
8.1.140.0040.00419.55
8.1.130.0040.00417.69
8.1.120.0000.00717.45
8.1.110.0030.00417.35
8.1.100.0000.00717.40
8.1.90.0080.00017.48
8.1.80.0030.00317.37
8.1.70.0050.00317.34
8.1.60.0050.00217.58
8.1.50.0060.00317.40
8.1.40.0040.00417.48
8.1.30.0000.00817.64
8.1.20.0070.00017.63
8.1.10.0050.00217.50
8.1.00.0040.00417.56
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.44
8.0.270.0000.00717.31
8.0.260.0040.00417.15
8.0.250.0000.00616.96
8.0.240.0040.00416.84
8.0.230.0030.00416.86
8.0.220.0000.00716.88
8.0.210.0040.00416.77
8.0.200.0000.00716.93
8.0.190.0070.00316.90
8.0.180.0040.00416.82
8.0.170.0040.00416.97
8.0.160.0070.00016.95
8.0.150.0070.00016.73
8.0.140.0070.00316.89
8.0.130.0000.00513.24
8.0.120.0000.00716.86
8.0.110.0000.00716.78
8.0.100.0030.00516.82
8.0.90.0050.00216.77
8.0.80.0030.01416.87
8.0.70.0040.00416.91
8.0.60.0040.00416.75
8.0.50.0050.00216.79
8.0.30.0130.00417.04
8.0.20.0140.00717.40
8.0.10.0040.00416.95
8.0.00.0090.00916.90
7.4.330.0020.00216.70
7.4.320.0000.00616.50
7.4.300.0040.00416.58
7.4.290.0080.00016.39
7.4.280.0030.00716.40
7.4.270.0040.00416.64
7.4.260.0110.00016.57
7.4.250.0030.00316.47
7.4.240.0020.00616.53
7.4.230.0030.00316.69
7.4.220.0170.00716.53
7.4.210.0140.00016.55
7.4.200.0040.00416.49
7.4.160.0090.00616.48
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0120.00616.57
7.4.120.0050.01516.50
7.4.110.0070.01116.62
7.4.100.0100.00716.36
7.4.90.0070.01016.47
7.4.80.0090.00919.39
7.4.70.0110.00516.50
7.4.60.0150.00016.48
7.4.50.0030.01016.54
7.4.40.0130.00316.55
7.4.30.0110.01116.43
7.4.00.0060.00915.13
7.3.330.0030.00313.36
7.3.320.0030.00313.18
7.3.310.0030.00316.34
7.3.300.0000.00716.36
7.3.290.0040.01116.37
7.3.280.0130.01016.31
7.3.270.0150.00617.40
7.3.260.0090.00916.60
7.3.250.0100.00716.38
7.3.240.0080.00816.32
7.3.230.0100.00716.47
7.3.210.0140.00716.36
7.3.200.0120.00919.39
7.3.190.0100.00716.59
7.3.180.0080.00816.41
7.3.170.0030.01316.62
7.3.160.0120.00316.47
7.2.330.0130.00316.36
7.2.320.0110.00716.41
7.2.310.0090.00916.68
7.2.300.0100.00716.80
7.2.290.0130.00916.81
7.2.60.0110.00316.91
7.2.00.0030.01219.36
7.1.200.0030.01015.79
7.1.100.0030.00617.73
7.1.70.0170.00917.11
7.1.60.0040.01919.20
7.1.50.0040.00716.63
7.1.00.0030.07322.33
7.0.200.0060.00316.66
7.0.60.0070.07721.70
7.0.50.0100.05017.88
7.0.40.0170.08020.27
7.0.30.0230.08020.25
7.0.20.0170.07720.23
7.0.10.0130.08320.26
7.0.00.0130.07020.08
5.6.280.0000.03721.07
5.6.210.0070.08020.49
5.6.200.0030.05318.19
5.6.190.0100.04020.52
5.6.180.0400.05720.34
5.6.170.0200.05720.40
5.6.160.0100.04020.71
5.6.150.0070.05318.18
5.6.140.0100.05718.14
5.6.130.0030.04718.23
5.6.120.0070.04720.98
5.6.110.0070.09021.03
5.6.100.0130.04320.95
5.6.90.0070.07721.03
5.6.80.0100.06720.41
5.5.350.0270.07020.31
5.5.340.0070.04717.96
5.5.330.0070.05020.19
5.5.320.0570.04320.34
5.5.310.0230.08320.34
5.5.300.0100.08017.99
5.5.290.0100.07318.02
5.5.280.0100.05720.68
5.5.270.0070.04020.88
5.5.260.0070.06320.76
5.5.250.0030.09020.57
5.5.240.0170.07720.15

preferences:
46.74 ms | 401 KiB | 5 Q