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'; putenv("LANG=$g_lang"); if (setlocale(LC_ALL, $g_lang) === false) { throw new Exception('Setting locale failed.'); } class InfoBlob { public $foo; function InfoBlob() { $this->foo = "Foo"; } } echo ('Instantiating an infoBlob with a lowercase i '); $foobar = new infoBlob(); echo ($foobar->foo); echo ('<br>Instantiating an InfoBlob with an uppercase I >'); $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.0250.00418.68
8.3.50.0170.00722.05
8.3.40.0000.01418.85
8.3.30.0000.01418.96
8.3.20.0060.00318.84
8.3.10.0080.00021.29
8.3.00.0000.00823.90
8.2.180.0260.00316.88
8.2.170.0180.00722.96
8.2.160.0070.01020.72
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00221.29
8.2.110.0030.00621.14
8.2.100.0090.00317.86
8.2.90.0040.00419.33
8.2.80.0070.00418.05
8.2.70.0030.00917.75
8.2.60.0040.00718.18
8.2.50.0090.00318.07
8.2.40.0050.00518.34
8.2.30.0050.00520.20
8.2.20.0060.00317.78
8.2.10.0050.00217.85
8.2.00.0090.00517.87
8.1.280.0110.00425.92
8.1.270.0000.00723.99
8.1.260.0070.01126.35
8.1.250.0050.00228.09
8.1.240.0130.00322.51
8.1.230.0080.00621.12
8.1.220.0060.00318.77
8.1.210.0080.00319.09
8.1.200.0060.00317.49
8.1.190.0000.00717.63
8.1.180.0060.00618.10
8.1.170.0100.00018.79
8.1.160.0000.00718.95
8.1.150.0000.01018.73
8.1.140.0040.00417.52
8.1.130.0000.00717.99
8.1.120.0050.00517.67
8.1.110.0100.00217.54
8.1.100.0000.00817.68
8.1.90.0000.00817.59
8.1.80.0000.00817.58
8.1.70.0100.00017.62
8.1.60.0110.00317.81
8.1.50.0030.00617.68
8.1.40.0040.00417.76
8.1.30.0040.00417.85
8.1.20.0040.00417.80
8.1.10.0080.00017.91
8.1.00.0140.00017.80
8.0.300.0070.00320.14
8.0.290.0090.00918.58
8.0.280.0070.00018.76
8.0.270.0000.01117.52
8.0.260.0090.00017.04
8.0.250.0040.00417.03
8.0.240.0120.00017.25
8.0.230.0000.00817.15
8.0.220.0000.00717.10
8.0.210.0040.00417.18
8.0.200.0000.00717.16
8.0.190.0020.00517.29
8.0.180.0030.00917.09
8.0.170.0030.00617.20
8.0.160.0000.00717.16
8.0.150.0070.01017.18
8.0.140.0130.00017.09
8.0.130.0070.00313.60
8.0.120.0040.00417.15
8.0.110.0000.00817.13
8.0.100.0030.00516.96
8.0.90.0030.00317.15
8.0.80.0070.00817.11
8.0.70.0050.00217.03
8.0.60.0040.00417.08
8.0.50.0060.00316.95
8.0.30.0180.00317.25
8.0.20.0140.00517.53
8.0.10.0050.00517.14
8.0.00.0140.00616.87
7.4.330.0070.00015.14
7.4.320.0060.00316.76
7.4.300.0030.00316.79
7.4.290.0070.00016.75
7.4.280.0110.00016.74
7.4.270.0040.00416.80
7.4.260.0030.00313.59
7.4.250.0000.00716.85
7.4.240.0000.00716.68
7.4.230.0070.00016.91
7.4.220.0070.01516.88
7.4.210.0070.00716.86
7.4.200.0050.00316.87
7.4.190.0030.00316.92
7.4.160.0100.00616.93
7.4.150.0180.00017.40
7.4.140.0060.01117.86
7.4.130.0120.01016.77
7.4.120.0120.00416.77
7.4.110.0130.01316.75
7.4.100.0170.00016.73
7.4.90.0140.00316.83
7.4.80.0090.00919.37
7.4.70.0030.01716.94
7.4.60.0120.00916.86
7.4.50.0040.00416.70
7.4.40.0100.00722.27
7.4.30.0060.01216.81
7.4.00.0030.01215.13
7.3.330.0090.00313.80
7.3.320.0000.01113.80
7.3.310.0040.00316.64
7.3.300.0000.00716.75
7.3.290.0300.00016.70
7.3.280.0080.00916.63
7.3.270.0040.01317.40
7.3.260.0160.00618.24
7.3.250.0110.01316.77
7.3.240.0130.01316.82
7.3.230.0140.00416.52
7.3.210.0180.01116.73
7.3.200.0120.00919.39
7.3.190.0190.00316.75
7.3.180.0060.00916.80
7.3.170.0140.00316.98
7.3.160.0060.01016.80
7.3.120.0070.00714.73
7.2.330.0130.00717.04
7.2.320.0160.00617.06
7.2.310.0100.01017.05
7.2.300.0060.01416.78
7.2.290.0180.00917.22
7.2.80.0030.01316.53
7.2.60.0090.00616.78
7.2.00.0030.01219.58
7.1.200.0050.01015.75
7.1.100.0070.00718.30
7.1.70.0030.00617.34
7.1.60.0100.01419.40
7.1.50.0130.01317.18
7.1.00.0030.06022.45
7.0.200.0000.00716.96
7.0.140.0000.07722.19
7.0.60.0000.06321.63
7.0.50.0000.04317.80
7.0.40.0100.04020.02
7.0.30.0270.08020.07
7.0.20.0270.04320.16
7.0.10.0730.08020.23
7.0.00.0030.04320.05
5.6.280.0030.07320.99
5.6.210.0230.06020.48
5.6.200.0100.08018.29
5.6.190.0100.08320.39
5.6.180.0330.06720.48
5.6.170.0330.07720.55
5.6.160.0000.04720.47
5.6.150.0030.04318.20
5.6.140.0030.05718.28
5.6.130.0100.05018.28
5.6.120.0070.04321.02
5.6.110.0200.07021.01
5.6.100.0070.05720.96
5.6.90.0130.07721.03
5.6.80.0030.04020.39
5.5.350.0130.07020.47
5.5.340.0070.07318.07
5.5.330.0030.04320.21
5.5.320.0270.05320.52
5.5.310.0270.05020.34
5.5.300.0170.07018.03
5.5.290.0070.06318.07
5.5.280.0100.04720.88
5.5.270.0170.07720.87
5.5.260.0030.07720.77
5.5.250.0070.05020.71
5.5.240.0130.07020.19
5.4.450.1730.04019.56
5.4.440.1900.04319.33
5.4.430.1730.04019.46
5.4.420.1800.05019.57
5.4.410.1770.03719.38
5.4.400.0830.03719.23
5.4.390.0130.07019.20
5.4.380.0000.04319.23
5.4.370.1230.06019.20
5.4.360.1730.03019.00
5.4.350.2270.04019.20
5.4.340.1930.04019.14
5.4.320.1770.04718.95
5.4.310.1870.04718.88
5.4.300.1700.03319.14
5.4.290.1970.06019.09
5.4.280.1830.04319.10
5.4.270.1800.03018.98
5.4.260.1130.04719.00
5.4.250.0070.07318.80
5.4.240.0100.05019.09
5.4.230.1030.03718.98
5.4.220.1700.03319.13
5.4.210.1900.03719.13
5.4.200.1900.04319.02
5.4.190.2000.03719.02
5.4.180.1970.04718.82
5.4.170.1870.04319.09
5.4.160.1930.04319.21
5.4.150.1670.04319.14
5.4.140.2000.03316.41
5.4.130.1900.03316.57
5.4.120.0070.07016.57
5.4.110.0070.07316.51
5.4.100.0800.06016.40
5.4.90.1600.04016.30
5.4.80.1630.04016.62
5.4.70.1400.05016.44
5.4.60.1570.03016.61
5.4.50.1630.03716.59
5.4.40.1600.04316.59
5.4.30.1730.04316.30
5.4.20.1800.04016.30
5.4.10.1630.04316.47
5.4.00.1530.03715.86
5.3.290.1530.04314.68
5.3.280.0200.04314.50
5.3.270.0170.07714.72
5.3.260.0230.03714.50
5.3.250.0230.07314.69
5.3.240.0170.04714.61
5.3.230.0230.07014.50
5.3.220.0230.04014.68
5.3.210.0270.06314.59
5.3.200.0130.04014.49
5.3.190.0270.05714.54
5.3.180.0270.03714.61
5.3.170.0270.06714.56
5.3.160.0130.04314.55
5.3.150.0200.03314.64
5.3.140.0230.06314.61
5.3.130.0230.04314.46
5.3.120.0170.05014.60
5.3.110.0170.06714.63
5.3.100.0100.04714.05
5.3.90.0130.07014.14
5.3.80.0270.06714.02
5.3.70.0200.03714.07
5.3.60.0100.04014.02
5.3.50.0170.04013.98
5.3.40.0230.03713.86
5.3.30.0230.04313.77
5.3.20.0230.03713.78
5.3.10.0130.05713.56
5.3.00.0200.04313.66
5.2.170.0070.03011.24
5.2.160.0170.04311.05
5.2.150.0230.02311.13
5.2.140.0230.06311.06
5.2.130.0200.02711.09
5.2.120.0170.03311.12
5.2.110.0200.02711.16
5.2.100.0130.03011.09
5.2.90.0170.03011.26
5.2.80.0200.03311.22
5.2.70.0100.03311.32
5.2.60.0130.03011.00
5.2.50.0200.02311.02
5.2.40.0130.02710.91
5.2.30.0170.03311.22
5.2.20.0170.02310.91
5.2.10.0170.02310.93
5.2.00.0130.04010.67
5.1.60.0100.02710.08
5.1.50.0070.03310.14
5.1.40.0130.02710.08
5.1.30.0130.02310.26
5.1.20.0170.03310.58
5.1.10.0070.03710.13
5.1.00.0170.02710.05
5.0.50.0070.0239.41
5.0.40.0070.0209.41
5.0.30.0030.0379.41
5.0.20.0030.0209.41
5.0.10.0070.0309.41
5.0.00.0070.0509.41
4.4.90.0130.0109.41
4.4.80.0070.0379.41
4.4.70.0070.0239.41
4.4.60.0070.0209.41
4.4.50.0100.0209.41
4.4.40.0030.0339.41
4.4.30.0070.0179.41
4.4.20.0100.0179.41
4.4.10.0070.0139.41
4.4.00.0030.0279.41
4.3.110.0070.0209.41
4.3.100.0000.0139.41
4.3.90.0000.0339.41
4.3.80.0030.0279.41
4.3.70.0070.0139.41
4.3.60.0030.0179.41
4.3.50.0070.0279.41
4.3.40.0070.0239.41
4.3.30.0030.0139.41
4.3.20.0070.0139.41
4.3.10.0000.0179.41
4.3.00.0000.0179.41

preferences:
51.72 ms | 401 KiB | 5 Q