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; } } $example = new Example('hippy'); var_dump($example::FOO);

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.0140.00416.63
8.3.50.0140.00716.30
8.3.40.0070.00718.63
8.3.30.0140.00018.75
8.3.20.0040.00420.09
8.3.10.0040.00423.71
8.3.00.0040.00422.40
8.2.180.0060.00918.42
8.2.170.0040.01122.96
8.2.160.0100.00319.12
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00422.09
8.2.120.0000.00826.35
8.2.110.0030.00621.03
8.2.100.0070.00717.78
8.2.90.0040.00417.91
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0040.00418.09
8.2.50.0030.00618.10
8.2.40.0040.00420.42
8.2.30.0060.00319.23
8.2.20.0040.00417.63
8.2.10.0040.00418.06
8.2.00.0040.00417.74
8.1.280.0090.01225.92
8.1.270.0040.00424.05
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0050.00323.96
8.1.230.0080.00320.88
8.1.220.0000.00917.79
8.1.210.0030.00618.90
8.1.200.0030.00617.36
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0030.00522.05
8.1.150.0040.00418.88
8.1.140.0040.00419.48
8.1.130.0040.00417.58
8.1.120.0030.00517.48
8.1.110.0040.00417.46
8.1.100.0040.00417.37
8.1.90.0040.00317.45
8.1.80.0070.00017.39
8.1.70.0060.00317.36
8.1.60.0040.00417.49
8.1.50.0030.00617.50
8.1.40.0000.00817.41
8.1.30.0080.00017.57
8.1.20.0050.00517.56
8.1.10.0040.00417.52
8.1.00.0030.00617.39
8.0.300.0040.00419.73
8.0.290.0040.00416.63
8.0.280.0000.00718.34
8.0.270.0000.00817.26
8.0.260.0000.00617.27
8.0.250.0000.00716.96
8.0.240.0000.00716.83
8.0.230.0050.00216.95
8.0.220.0000.00816.87
8.0.210.0040.00416.87
8.0.200.0050.00316.84
8.0.190.0040.00416.87
8.0.180.0080.00016.91
8.0.170.0040.00416.97
8.0.160.0080.00016.94
8.0.150.0040.00416.67
8.0.140.0040.00416.88
8.0.130.0000.00713.28
8.0.120.0040.00416.85
8.0.110.0000.00716.77
8.0.100.0050.00316.96
8.0.90.0000.00716.84
8.0.80.0090.01116.95
8.0.70.0040.00416.77
8.0.60.0000.00716.76
8.0.50.0000.00716.92
8.0.30.0100.00617.14
8.0.20.0100.00917.40
8.0.10.0040.00416.87
8.0.00.0060.01216.79
7.4.330.0000.00515.08
7.4.320.0000.00716.54
7.4.300.0030.00316.61
7.4.290.0000.00716.41
7.4.280.0000.00716.51
7.4.270.0000.00616.50
7.4.260.0030.00316.51
7.4.250.0000.00716.46
7.4.240.0050.00316.54
7.4.230.0000.00716.48
7.4.220.0030.01716.59
7.4.210.0080.00716.64
7.4.200.0000.00716.68
7.4.160.0080.00716.54
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0130.00516.45
7.4.120.0090.01216.39
7.4.110.0100.00716.54
7.4.100.0030.01216.58
7.4.90.0110.00716.59
7.4.80.0070.01019.39
7.4.70.0030.01316.58
7.4.60.0160.00016.46
7.4.50.0040.01116.40
7.4.40.0150.00716.54
7.4.30.0110.01116.56
7.4.00.0070.00414.95
7.3.330.0060.00213.22
7.3.320.0030.00313.23
7.3.310.0030.00316.22
7.3.300.0000.00716.26
7.3.290.0040.00416.20
7.3.280.0090.00816.36
7.3.270.0130.00517.40
7.3.260.0100.00716.62
7.3.250.0120.00916.43
7.3.240.0080.01116.42
7.3.230.0140.00316.46
7.3.210.0110.00516.43
7.3.200.0100.00616.73
7.3.190.0060.01016.47
7.3.180.0090.01516.45
7.3.170.0030.01416.65
7.3.160.0090.01216.60
7.2.330.0060.01216.73
7.2.320.0030.01316.59
7.2.310.0090.01216.53
7.2.300.0090.00916.34
7.2.290.0060.01016.65
7.2.60.0110.00316.56
7.2.00.0000.00919.48
7.1.200.0080.00015.57
7.1.70.0070.00317.13
7.1.60.0030.01017.27
7.1.00.0000.08022.42
7.0.200.0580.00314.84
7.0.110.0470.06020.30
7.0.100.0270.07020.26
7.0.90.0370.06720.33
7.0.80.0700.06720.22
7.0.70.0300.05320.18
7.0.60.0370.05720.23
7.0.50.0170.05720.30
7.0.40.0270.06020.34
7.0.30.0030.06020.41
7.0.20.0130.05720.27
7.0.10.0230.04720.41
7.0.00.0100.06020.23
5.6.260.0200.04320.98
5.6.250.0170.04720.89
5.6.240.0130.05721.02
5.6.230.0100.06021.02
5.6.220.0200.04720.82
5.6.210.0170.05020.88
5.6.200.0100.05720.84
5.6.190.0130.05720.84
5.6.180.0030.06021.02
5.6.170.0170.05321.04
5.6.160.0200.05020.86
5.6.150.0130.05320.85
5.6.140.0130.05320.86
5.6.130.0100.05321.07
5.6.120.0030.06321.06
5.6.110.0030.06720.92
5.6.100.0130.05720.98
5.6.90.0170.05321.02
5.6.80.0070.05720.41
5.6.70.0070.05720.46
5.6.60.0070.06020.44
5.6.50.0100.05020.24
5.6.40.0230.04020.43
5.6.30.0030.06020.36
5.6.20.0070.06020.30
5.6.10.0200.04720.40
5.6.00.0200.06320.17

preferences:
66.08 ms | 401 KiB | 5 Q