3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=18556 // Set language to desired language $g_lang = 'tr_TR.iso8859-9'; putenv("LANG=$g_lang"); $newLocale = setlocale(LC_ALL, $g_lang); if ($newLocale === false) { throw new Exception('Setting locale failed.'); } var_dump($newLocale); class InfoBlob { public $foo; function InfoBlob() { $this->foo = "Foo"; } } echo ('Instantiating an infoBlob with a lowercase i<br>'); $foobar = new infoBlob(); echo ($foobar->foo); echo ('<br>Instantiating an InfoBlob with an uppercase I<br>'); $foobar = new InfoBlob(); echo ($foobar->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.0060.01516.63
8.3.50.0280.00617.56
8.3.40.0030.01518.69
8.3.30.0090.00619.00
8.3.20.0040.00418.80
8.3.10.0040.00420.79
8.3.00.0040.00419.50
8.2.180.0190.00025.92
8.2.170.0120.00919.22
8.2.160.0140.00022.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00321.37
8.2.110.0040.00419.43
8.2.100.0090.00318.07
8.2.90.0060.00319.55
8.2.80.0000.00819.59
8.2.70.0040.00717.88
8.2.60.0080.00618.15
8.2.50.0000.00818.07
8.2.40.0080.00318.47
8.2.30.0050.00718.28
8.2.20.0100.00717.78
8.2.10.0050.00218.02
8.2.00.0050.00717.99
8.1.280.0210.00025.92
8.1.270.0100.00023.99
8.1.260.0030.00726.35
8.1.250.0000.00728.09
8.1.240.0100.00322.82
8.1.230.0000.01121.16
8.1.220.0000.00817.90
8.1.210.0110.00019.12
8.1.200.0080.00417.50
8.1.190.0080.00017.65
8.1.180.0000.00818.10
8.1.170.0030.00818.77
8.1.160.0030.00519.14
8.1.150.0080.00018.89
8.1.140.0040.00417.65
8.1.130.0030.00318.10
8.1.120.0060.00317.67
8.1.110.0030.00517.65
8.1.100.0070.00017.66
8.1.90.0050.00217.54
8.1.80.0000.00717.57
8.1.70.0030.00317.61
8.1.60.0000.00817.69
8.1.50.0000.00717.57
8.1.40.0080.00017.68
8.1.30.0060.00317.74
8.1.20.0050.00317.92
8.1.10.0030.00617.86
8.1.00.0040.00417.83
8.0.300.0040.00420.24
8.0.290.0090.00017.00
8.0.280.0040.00418.78
8.0.270.0030.00317.57
8.0.260.0080.00017.04
8.0.250.0090.00317.28
8.0.240.0000.00717.19
8.0.230.0000.00717.09
8.0.220.0030.00317.20
8.0.210.0040.00417.00
8.0.200.0030.00317.15
8.0.190.0000.00717.27
8.0.180.0070.00317.13
8.0.170.0040.00417.06
8.0.160.0040.00417.11
8.0.150.0000.00817.15
8.0.140.0060.00617.13
8.0.130.0000.00613.64
8.0.120.0040.00417.23
8.0.110.0040.00417.18
8.0.100.0040.00417.20
8.0.90.0050.00217.14
8.0.80.0140.00617.13
8.0.70.0000.00816.97
8.0.60.0040.00417.10
8.0.50.0020.00516.92
8.0.30.0140.00717.57
8.0.20.0080.01217.34
8.0.10.0040.00417.07
8.0.00.0180.01016.94
7.4.330.0000.00613.19
7.4.320.0030.00316.84
7.4.300.0040.00416.91
7.4.290.0030.00316.96
7.4.280.0000.00916.90
7.4.270.0030.00316.80
7.4.260.0050.00013.59
7.4.250.0030.00516.95
7.4.240.0070.00016.82
7.4.230.0000.00716.93
7.4.220.0100.00716.88
7.4.210.0120.00316.85
7.4.200.0000.00816.86
7.4.190.0030.00516.78
7.4.160.0050.01116.87
7.4.150.0080.01216.70
7.4.140.0140.00316.88
7.4.130.0140.00316.88
7.4.120.0120.00917.03
7.4.110.0070.01717.05
7.4.100.0070.01716.88
7.4.90.0160.00916.84
7.4.80.0140.00919.39
7.4.70.0140.00317.04
7.4.60.0110.01216.85
7.4.50.0080.00016.68
7.4.40.0040.01016.62
7.4.30.0130.00316.77
7.4.00.0060.01214.95
7.3.330.0030.00313.72
7.3.320.0080.00413.55
7.3.310.0040.00416.71
7.3.300.0050.00216.75
7.3.290.0090.00816.73
7.3.280.0080.01216.77
7.3.270.0000.01616.99
7.3.260.0120.00616.84
7.3.250.0120.01216.87
7.3.240.0170.00016.73
7.3.230.0070.01416.77
7.3.210.0130.01016.59
7.3.200.0130.01016.74
7.3.190.0140.00416.91
7.3.180.0150.00616.61
7.3.170.0000.01616.64
7.3.160.0090.00916.73
7.3.120.0070.01014.95
7.3.10.0060.00616.71
7.3.00.0030.00916.67
7.2.330.0070.01017.17
7.2.320.0110.01417.08
7.2.310.0190.00616.83
7.2.300.0110.00717.09
7.2.290.0070.01117.07
7.2.130.0000.01116.94
7.2.120.0070.00316.91
7.2.110.0070.00717.00
7.2.100.0030.00716.64
7.2.90.0060.00616.96
7.2.80.0030.01016.55
7.2.70.0060.00317.05
7.2.60.0080.00616.94
7.2.50.0030.01016.72
7.2.40.0030.00716.84
7.2.30.0000.01216.84
7.2.20.0070.00716.98
7.2.10.0100.00316.75
7.2.00.0080.00318.29
7.1.250.0040.00815.59
7.1.200.0100.00515.75
7.1.100.0060.00918.27
7.1.70.0000.01717.29
7.1.60.0100.01019.30
7.1.50.0060.00617.15
7.1.00.0100.03022.30
7.0.200.0040.00416.79
7.0.140.0030.07322.10
7.0.120.0070.06722.06
7.0.60.0170.07319.97
7.0.50.0130.06017.73
7.0.40.0070.08720.31
7.0.30.0200.06020.07
7.0.20.0130.04720.13
7.0.10.0400.07320.06
7.0.00.0100.06720.07
5.6.280.0070.07021.13
5.6.210.0070.08320.51
5.6.200.0070.06718.16
5.6.190.0070.05020.46
5.6.180.0030.05320.52
5.6.170.0270.07720.59
5.6.160.0100.08020.47
5.6.150.0070.07718.16
5.6.140.0200.06318.24
5.6.130.0030.05018.24
5.6.120.0100.07021.02
5.6.110.0170.07720.97
5.6.100.0000.06321.05
5.6.90.0100.08720.99
5.6.80.0100.07720.37
5.6.70.0100.07320.28
5.5.350.0000.04320.38
5.5.340.0030.07717.94
5.5.330.0070.08320.22
5.5.320.0300.06320.35
5.5.310.0270.07020.23
5.5.300.0000.04318.01
5.5.290.0030.09017.98
5.5.280.0070.07020.95
5.5.270.0070.04020.87
5.5.260.0030.04320.79
5.5.250.0030.07720.71
5.5.240.0130.07320.03
5.4.450.0000.04319.58
5.4.440.0100.03319.40
5.4.430.0100.03719.56
5.4.420.0030.04019.56
5.4.410.0000.04019.43
5.4.400.0000.04019.27
5.4.390.0030.03719.25
5.4.380.0030.04019.24
5.4.370.0100.03018.98
5.4.360.0000.04019.21
5.4.350.0030.03718.98
5.4.340.0030.03718.93
5.4.320.0030.04019.16
5.4.310.0070.03318.93
5.4.300.0030.03718.86
5.4.290.0000.04719.01
5.4.280.0070.03319.17
5.4.270.0100.03019.24
5.4.260.0030.03718.88
5.4.250.0100.05718.94
5.4.240.0070.05019.14
5.4.230.0070.07319.14
5.4.220.0030.05019.00
5.4.210.0070.04718.97
5.4.200.0000.06018.92
5.4.190.0100.07719.23
5.4.180.0100.07319.23
5.4.170.0130.07019.14
5.4.160.0070.07719.13
5.4.150.0000.08319.23
5.4.140.0070.07716.32
5.4.130.0000.08016.39
5.4.120.0030.07316.39
5.4.110.0100.06316.46
5.4.100.0100.07016.43
5.4.90.0100.07716.73
5.4.80.0030.07316.71
5.4.70.0100.04016.41
5.4.60.0000.08316.33
5.4.50.0100.04316.50
5.4.40.0100.07016.48
5.4.30.0070.06716.44
5.4.20.0030.06716.32
5.4.10.0070.05016.43
5.4.00.0030.06016.00
5.3.290.0030.03714.68
5.3.280.0070.07714.63
5.3.270.0070.06014.61
5.3.260.0130.06714.66
5.3.250.0070.07314.61
5.3.240.0070.06714.77
5.3.230.0070.04714.75
5.3.220.0030.05014.56
5.3.210.0100.06714.72
5.3.200.0130.07314.58
5.3.190.0000.07014.57
5.3.180.0070.05014.57
5.3.170.0130.06014.52
5.3.160.0070.06314.57
5.3.150.0070.07314.59
5.3.140.0100.06314.57
5.3.130.0030.05014.55
5.3.120.0070.08314.56
5.3.110.0130.06014.58
5.3.100.0070.07014.05
5.3.90.0070.06314.09
5.3.80.0070.06014.05
5.3.70.0100.06714.03
5.3.60.0070.06014.15
5.3.50.0070.07713.97
5.3.40.0070.04313.88
5.3.30.0000.04314.06
5.3.20.0030.07713.70
5.3.10.0070.06013.67
5.3.00.0030.05013.67
5.2.170.0100.04011.19
5.2.160.0070.05311.21
5.2.150.0030.03311.19
5.2.140.0100.05711.21
5.2.130.0000.06011.14
5.2.120.0070.05311.17
5.2.110.0030.06711.07
5.2.100.0070.06011.18
5.2.90.0030.03011.18
5.2.80.0030.04711.16
5.2.70.0030.05711.13
5.2.60.0070.05710.94
5.2.50.0030.05011.01
5.2.40.0100.05711.04
5.2.30.0170.02310.97
5.2.20.0030.03711.03
5.2.10.0030.05710.86
5.2.00.0030.03710.86
5.1.60.0170.0309.99
5.1.50.0000.03710.00
5.1.40.0070.04710.14
5.1.30.0070.06010.50
5.1.20.0030.05710.50
5.1.10.0070.05310.06
5.1.00.0130.04310.07
5.0.50.0030.0478.59
5.0.40.0100.0308.46
5.0.30.0000.0478.31
5.0.20.0030.0438.18
5.0.10.0070.0408.23
5.0.00.0070.0638.07
4.4.90.0070.0137.71
4.4.80.0000.0237.71
4.4.70.0000.0337.71
4.4.60.0070.0337.71
4.4.50.0030.0237.71
4.4.40.0070.0237.71
4.4.30.0000.0207.71
4.4.20.0000.0377.71
4.4.10.0030.0377.71
4.4.00.0030.0477.71
4.3.110.0030.0337.71
4.3.100.0000.0377.71
4.3.90.0000.0377.71
4.3.80.0000.0577.71
4.3.70.0030.0237.71
4.3.60.0000.0377.71
4.3.50.0000.0307.71
4.3.40.0000.0477.71
4.3.30.0000.0377.71
4.3.20.0000.0307.71
4.3.10.0000.0377.71
4.3.00.0030.0337.71

preferences:
45.49 ms | 401 KiB | 5 Q