3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class ('buu') { public function __construct($b) { $this->b = $b; } }; var_dump($a); echo get_class($a);

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.70.0120.00416.50
8.3.60.0140.01016.88
8.3.50.0050.01321.87
8.3.40.0200.00019.02
8.3.30.0090.00618.79
8.3.20.0040.00420.20
8.3.10.0000.00721.73
8.3.00.0080.00021.87
8.2.190.0160.00318.41
8.2.180.0060.01418.04
8.2.170.0040.01122.96
8.2.160.0170.00022.13
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0030.00520.78
8.2.120.0000.00826.35
8.2.110.0090.00019.19
8.2.100.0090.00317.93
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0080.00018.04
8.2.50.0060.00318.09
8.2.40.0040.00422.32
8.2.30.0000.00719.36
8.2.20.0000.00717.78
8.2.10.0000.00718.11
8.2.00.0000.00717.97
8.1.280.0110.00725.92
8.1.270.0020.00522.06
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0040.00422.22
8.1.230.0080.00317.83
8.1.220.0070.00017.74
8.1.210.0060.00318.77
8.1.200.0080.00317.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0080.00018.47
8.1.160.0040.00420.73
8.1.150.0050.00218.95
8.1.140.0060.00319.58
8.1.130.0040.00417.73
8.1.120.0030.00417.36
8.1.110.0030.00317.49
8.1.100.0000.00717.47
8.1.90.0050.00317.47
8.1.80.0040.00417.43
8.1.70.0040.00417.43
8.1.60.0060.00317.59
8.1.50.0000.00817.47
8.1.40.0050.00317.41
8.1.30.0040.00417.66
8.1.20.0040.00417.64
8.1.10.0040.00417.55
8.1.00.0000.00817.49
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0050.00217.16
8.0.260.0060.00017.18
8.0.250.0070.00016.93
8.0.240.0030.00316.98
8.0.230.0000.00716.99
8.0.220.0020.00516.88
8.0.210.0030.00316.95
8.0.200.0030.00616.98
8.0.190.0090.00016.92
8.0.180.0000.00716.86
8.0.170.0000.00716.96
8.0.160.0040.00416.85
8.0.150.0050.00216.74
8.0.140.0000.00716.86
8.0.130.0030.00313.25
8.0.120.0000.00816.83
8.0.110.0070.00016.86
8.0.100.0000.00716.90
8.0.90.0070.00016.76
8.0.80.0090.00616.85
8.0.70.0000.00816.95
8.0.60.0080.00016.73
8.0.50.0000.00716.83
8.0.30.0100.00917.14
8.0.20.0080.01017.40
8.0.10.0080.00016.96
8.0.00.0060.01116.80
7.4.330.0000.00516.85
7.4.320.0030.00316.58
7.4.300.0060.00016.51
7.4.290.0000.00716.51
7.4.280.0100.00016.41
7.4.270.0080.00016.51
7.4.260.0090.00016.41
7.4.250.0000.00716.45
7.4.240.0030.00316.51
7.4.230.0050.00316.63
7.4.220.0100.00916.68
7.4.210.0080.00716.61
7.4.200.0070.00016.34
7.4.160.0110.00316.60
7.4.150.0130.00517.40
7.4.140.0070.01117.86
7.4.130.0130.00716.56
7.4.120.0080.01016.39
7.4.110.0100.00716.77
7.4.100.0100.01316.50
7.4.90.0060.01116.55
7.4.80.0100.01319.39
7.4.70.0030.01516.68
7.4.60.0120.00616.39
7.4.50.0100.00716.54
7.4.40.0080.00816.57
7.4.30.0070.01316.56
7.4.00.0040.01215.12
7.3.330.0030.00313.26
7.3.320.0000.00613.27
7.3.310.0070.00016.39
7.3.300.0060.00016.16
7.3.290.0030.00316.16
7.3.280.0090.00816.24
7.3.270.0100.00617.40
7.3.260.0150.00716.52
7.3.250.0110.00716.41
7.3.240.0050.01216.40
7.3.230.0090.00916.39
7.3.210.0070.01016.36
7.3.200.0080.00816.31
7.3.190.0120.00616.21
7.3.180.0160.00016.32
7.3.170.0060.01016.59
7.3.160.0060.00916.41
7.2.330.0060.01316.82
7.2.320.0120.00416.79
7.2.310.0030.01316.78
7.2.300.0030.01316.73
7.2.290.0060.01016.51
7.2.60.0120.00016.85
7.2.00.0000.01219.41
7.1.200.0000.01615.71
7.1.100.0070.00718.06
7.1.70.0030.00917.03
7.1.60.0070.01819.40
7.1.50.0040.00816.93
7.1.00.0000.07722.33
7.0.200.0740.00314.39
7.0.60.0130.07321.66
7.0.50.0100.07717.73
7.0.40.0070.08720.23
7.0.30.0470.07320.09
7.0.20.0430.07020.33
7.0.10.0100.08320.33
7.0.00.0100.08720.05
5.6.280.0030.04721.14
5.6.210.0130.08020.55
5.6.200.0000.09318.28
5.6.190.0100.07320.55
5.6.180.0300.04020.50
5.6.170.0100.05020.58
5.6.160.0000.05020.46
5.6.150.0070.03718.15
5.6.140.0070.08018.18
5.6.130.0100.05018.18
5.6.120.0100.05721.00
5.6.110.0070.07321.04
5.6.100.0070.08720.85
5.6.90.0030.07720.97
5.6.80.0100.07020.43
5.5.350.0270.04320.40
5.5.340.0100.05717.96
5.5.330.0100.08720.55
5.5.320.0500.04320.42
5.5.310.0300.07320.50
5.5.300.0070.05017.97
5.5.290.0230.06017.96
5.5.280.0130.05020.64
5.5.270.0070.03720.86
5.5.260.0030.07720.84
5.5.250.0100.07720.68
5.5.240.0200.08020.28

preferences:
58.44 ms | 401 KiB | 5 Q