3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { const FOO = 'bar'; public function __construct($b) { define('BAR', 'foo'); $this->FOO = $b; } }

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.0110.00716.50
8.3.50.0130.00221.16
8.3.40.0090.00618.39
8.3.30.0110.00318.57
8.3.20.0040.00420.25
8.3.10.0080.00023.64
8.3.00.0040.00422.23
8.2.180.0110.00416.32
8.2.170.0090.00622.96
8.2.160.0100.00319.16
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00422.32
8.2.120.0040.00426.35
8.2.110.0030.00720.94
8.2.100.0080.00317.59
8.2.90.0030.00517.59
8.2.80.0040.00417.97
8.2.70.0000.00917.68
8.2.60.0080.00017.97
8.2.50.0030.00618.10
8.2.40.0040.00420.47
8.2.30.0030.00619.16
8.2.20.0000.00717.56
8.2.10.0030.00317.93
8.2.00.0000.00717.57
8.1.280.0080.00825.92
8.1.270.0070.00023.91
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0070.00322.00
8.1.230.0040.00722.75
8.1.220.0000.00717.74
8.1.210.0050.00318.90
8.1.200.0100.00017.10
8.1.190.0030.00617.10
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0000.00822.05
8.1.150.0050.00218.69
8.1.140.0030.00519.43
8.1.130.0040.00417.54
8.1.120.0030.00517.24
8.1.110.0000.00717.32
8.1.100.0040.00417.26
8.1.90.0000.00717.41
8.1.80.0000.00717.38
8.1.70.0080.00017.36
8.1.60.0030.00517.46
8.1.50.0040.00417.42
8.1.40.0040.00417.41
8.1.30.0060.00317.53
8.1.20.0040.00717.40
8.1.10.0040.00417.41
8.1.00.0070.00317.32
8.0.300.0060.00319.71
8.0.290.0030.00716.75
8.0.280.0030.00318.24
8.0.270.0030.00317.14
8.0.260.0060.00017.29
8.0.250.0030.00316.86
8.0.240.0000.00616.86
8.0.230.0040.00416.84
8.0.220.0050.00516.67
8.0.210.0000.00716.80
8.0.200.0000.00816.82
8.0.190.0050.00216.70
8.0.180.0040.00416.72
8.0.170.0000.00716.69
8.0.160.0050.00316.75
8.0.150.0050.00316.59
8.0.140.0040.00416.63
8.0.130.0080.00013.20
8.0.120.0000.00816.64
8.0.110.0040.00416.77
8.0.100.0050.00216.64
8.0.90.0090.00016.72
8.0.80.0130.00316.77
8.0.70.0000.00816.67
8.0.60.0000.00816.75
8.0.50.0040.00416.71
8.0.30.0060.01116.89
8.0.20.0130.00717.40
8.0.10.0000.00716.80
8.0.00.0120.00616.52
7.4.330.0050.00015.08
7.4.320.0000.00616.37
7.4.300.0070.00016.41
7.4.290.0070.00016.38
7.4.280.0000.00816.46
7.4.270.0030.00316.52
7.4.260.0030.00516.34
7.4.250.0080.00016.33
7.4.240.0040.00416.27
7.4.230.0030.00316.48
7.4.220.0090.00916.50
7.4.210.0090.00616.51
7.4.200.0070.00016.20
7.4.160.0110.00916.33
7.4.150.0180.00617.40
7.4.140.0090.00917.86
7.4.130.0070.00916.33
7.4.120.0080.01116.37
7.4.110.0120.00616.42
7.4.100.0110.00716.44
7.4.90.0140.00316.36
7.4.80.0100.01019.39
7.4.70.0130.00316.32
7.4.60.0070.01016.48
7.4.50.0030.01316.23
7.4.40.0070.01016.38
7.4.30.0000.01616.38
7.4.00.0120.00314.74
7.3.330.0000.00813.01
7.3.320.0000.00613.13
7.3.310.0030.00316.08
7.3.300.0030.00316.20
7.3.290.0120.00216.17
7.3.280.0100.00716.20
7.3.270.0070.01117.40
7.3.260.0090.01116.20
7.3.250.0090.00816.32
7.3.240.0090.01116.25
7.3.230.0060.00916.39
7.3.210.0130.00316.07
7.3.200.0090.00616.29
7.3.190.0080.00816.27
7.3.180.0070.01016.25
7.3.170.0070.01016.23
7.3.160.0100.00716.44
7.3.10.0070.00616.09
7.3.00.0100.00316.61
7.2.330.0130.00316.58
7.2.320.0120.00616.27
7.2.310.0070.01116.43
7.2.300.0100.00716.50
7.2.290.0030.01316.49
7.2.130.0030.01016.80
7.2.120.0100.00616.59
7.2.110.0120.00016.67
7.2.100.0060.00316.63
7.2.90.0060.01016.63
7.2.80.0080.00416.56
7.2.70.0030.01216.55
7.2.60.0060.00616.68
7.2.50.0070.00416.87
7.2.40.0070.01016.64
7.2.30.0070.01016.61
7.2.20.0080.00416.72
7.2.10.0060.00916.59
7.2.00.0030.00918.02
7.1.250.0040.00815.68
7.1.70.0030.00716.82
7.1.60.0100.00317.09
7.1.00.0130.06722.30
7.0.200.0070.00314.67
7.0.110.0430.07720.35
7.0.101.4300.05720.22
7.0.90.0270.07320.34
7.0.80.0400.07320.25
7.0.70.0430.06020.27
7.0.60.0400.06720.34
7.0.50.0070.05720.32
7.0.40.0130.05020.24
7.0.30.0130.07320.34
7.0.20.0070.05720.31
7.0.10.0130.05020.31
7.0.00.0070.06020.27
5.6.260.0170.05721.09
5.6.250.0170.05721.10
5.6.240.0100.05720.86
5.6.230.0170.07321.10
5.6.220.0230.05020.95
5.6.210.0070.06720.94
5.6.200.0070.06020.88
5.6.190.0070.07020.94
5.6.180.0130.06321.01
5.6.170.0200.04720.83
5.6.160.0130.05721.01
5.6.150.0100.06020.93
5.6.140.0070.08020.83
5.6.130.0130.05020.92
5.6.120.0130.07020.84
5.6.110.0170.06720.84
5.6.100.0100.05720.79
5.6.90.0070.05721.07
5.6.80.0300.05320.39
5.6.70.0070.06020.38
5.6.60.0100.06020.38
5.6.50.0270.04020.42
5.6.40.0070.05720.40
5.6.30.0130.06020.40
5.6.20.0100.06020.42
5.6.10.0130.05020.18
5.6.00.0170.04720.29

preferences:
49.03 ms | 401 KiB | 5 Q