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.UTF-8'; putenv("LANG=$g_lang"); if ($x = setlocale(LC_ALL, $g_lang) === false) { throw new Exception('Setting locale failed.'); } var_dump($x); 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.40.0120.00318.94
8.3.30.0040.01119.07
8.3.20.0070.01118.95
8.3.10.0040.00421.30
8.3.00.0080.00022.27
8.2.170.0170.00322.96
8.2.160.0100.01020.95
8.2.150.0040.00425.66
8.2.140.0000.01124.66
8.2.130.0000.00726.16
8.2.120.0130.00021.39
8.2.110.0000.01020.91
8.2.100.0040.01118.09
8.2.90.0080.00419.53
8.2.80.0040.00718.05
8.2.70.0060.00617.75
8.2.60.0080.00318.18
8.2.50.0100.00018.07
8.2.40.0050.00518.59
8.2.30.0100.00320.07
8.2.20.0060.00318.04
8.2.10.0030.00717.92
8.2.00.0100.00317.93
8.1.270.0060.00323.99
8.1.260.0090.00626.35
8.1.250.0070.00728.09
8.1.240.0110.00722.67
8.1.230.0090.00921.06
8.1.220.0080.00418.77
8.1.210.0070.00419.17
8.1.200.0080.00517.48
8.1.190.0090.00017.78
8.1.180.0040.00818.10
8.1.170.0060.00318.91
8.1.160.0100.00419.11
8.1.150.0000.00918.84
8.1.140.0110.00017.84
8.1.130.0040.00418.11
8.1.120.0000.00817.63
8.1.110.0060.00317.59
8.1.100.0030.00517.61
8.1.90.0100.00017.71
8.1.80.0050.00317.63
8.1.70.0090.00017.46
8.1.60.0080.00817.72
8.1.50.0000.01217.64
8.1.40.0000.00817.73
8.1.30.0050.00317.78
8.1.20.0030.00617.96
8.1.10.0130.00017.77
8.1.00.0130.00317.87
8.0.300.0150.00020.18
8.0.290.0050.00517.55
8.0.280.0080.00218.76
8.0.270.0080.00017.64
8.0.260.0100.00017.27
8.0.250.0050.00517.14
8.0.240.0100.00517.36
8.0.230.0000.00817.15
8.0.220.0050.00517.19
8.0.210.0060.00417.10
8.0.200.0040.00717.31
8.0.190.0040.00717.22
8.0.180.0050.00817.30
8.0.170.0000.01217.27
8.0.160.0060.00617.25
8.0.150.0040.00717.11
8.0.140.0260.00417.30
8.0.130.0060.00513.65
8.0.120.0080.00017.30
8.0.110.0080.00017.11
8.0.100.0030.00617.17
8.0.90.0040.00417.39
8.0.80.0160.00417.23
8.0.70.0000.00917.06
8.0.60.0070.00017.25
8.0.50.0030.00617.16
8.0.30.0130.01017.55
8.0.20.0100.01117.50
8.0.10.0110.00017.20
8.0.00.0160.00617.16
7.4.330.0060.00015.15
7.4.320.0070.00016.86
7.4.300.0000.00816.85
7.4.290.0080.00516.77
7.4.280.0050.00516.84
7.4.270.0110.00016.99
7.4.260.0000.00813.57
7.4.250.0000.00816.66
7.4.240.0000.00716.91
7.4.230.0050.00216.77
7.4.220.0090.01416.85
7.4.210.0130.00716.95
7.4.200.0030.00517.05
7.4.190.0030.00317.05
7.4.160.0140.00416.95
7.4.150.0090.00917.40
7.4.140.0130.01017.86
7.4.130.0090.01016.97
7.4.120.0160.00616.89
7.4.110.0160.00417.07
7.4.100.0060.01416.96
7.4.90.0130.00616.96
7.4.80.0190.00419.37
7.4.70.0140.00716.99
7.4.60.0110.01116.93
7.4.50.0000.00916.93
7.4.40.0100.00622.52
7.4.30.0110.01416.91
7.4.10.0060.00915.23
7.4.00.0070.01115.07
7.3.330.0070.00013.71
7.3.320.0030.00913.80
7.3.310.0000.00616.77
7.3.300.0070.00016.70
7.3.290.0210.00416.81
7.3.280.0070.01116.81
7.3.270.0000.01717.40
7.3.260.0120.00818.24
7.3.250.0100.01016.90
7.3.240.0180.00016.86
7.3.230.0170.00816.80
7.3.210.0130.00716.77
7.3.200.0170.01019.39
7.3.190.0130.00517.15
7.3.180.0030.02117.06
7.3.170.0120.00616.87
7.3.160.0110.00716.95
7.3.130.0030.01414.65
7.3.120.0070.00914.91
7.3.110.0100.01015.07
7.3.100.0040.01115.10
7.3.90.0000.01014.91
7.3.80.0070.00715.10
7.3.70.0030.00814.74
7.3.60.0000.00914.93
7.3.50.0060.00914.42
7.3.40.0030.00714.70
7.3.30.0050.00514.97
7.3.20.0080.00316.57
7.3.10.0030.00916.71
7.3.00.0030.01616.67
7.2.330.0110.00817.00
7.2.320.0180.00317.05
7.2.310.0100.01016.83
7.2.300.0170.00316.82
7.2.290.0130.00616.85
7.2.260.0000.01714.98
7.2.250.0080.00614.69
7.2.240.0070.00714.80
7.2.230.0030.01414.66
7.2.220.0030.01015.24
7.2.210.0030.00715.13
7.2.200.0140.00015.01
7.2.190.0100.00715.03
7.2.180.0150.00015.07
7.2.170.0090.00015.05
7.2.160.0060.00915.05
7.2.150.0110.00416.93
7.2.140.0100.00316.91
7.2.130.0060.00617.09
7.2.120.0040.00816.63
7.2.110.0030.01416.97
7.2.100.0070.01016.62
7.2.90.0100.00316.89
7.2.80.0030.01016.82
7.2.70.0070.00717.16
7.2.60.0110.00316.91
7.2.50.0080.00616.83
7.2.40.0030.00717.02
7.2.30.0030.01016.93
7.2.20.0030.01017.07
7.2.10.0060.00917.09
7.2.00.0080.00817.99
7.1.330.0060.01015.94
7.1.320.0030.01315.77
7.1.310.0030.01015.96
7.1.300.0040.01215.75
7.1.290.0040.01115.57
7.1.280.0080.00415.86
7.1.270.0000.00915.83
7.1.260.0060.01015.88
7.1.250.0110.00015.84
7.1.240.0060.00315.99
7.1.230.0030.00616.04
7.1.220.0000.01515.98
7.1.210.0090.00315.54
7.1.200.0030.01015.81
7.1.190.0040.00816.04
7.1.180.0000.01715.57
7.1.170.0120.00315.93
7.1.160.0070.00315.88
7.1.150.0030.00615.59
7.1.140.0030.00515.82
7.1.130.0040.00416.02
7.1.120.0080.00015.90
7.1.110.0040.00415.73
7.1.100.0040.00716.95
7.1.90.0060.00615.64
7.1.80.0060.00915.89
7.1.70.0020.00916.50
7.1.60.0080.01117.61
7.1.50.0040.01216.21
7.1.40.0000.01015.84
7.1.30.0100.00315.75
7.1.20.0060.00315.83
7.1.10.0100.00315.63
7.1.00.0020.02719.08
7.0.330.0000.01415.41
7.0.320.0040.00715.43
7.0.310.0120.00315.56
7.0.300.0040.00715.17
7.0.290.0030.00715.16
7.0.280.0030.00715.45
7.0.270.0040.00815.37
7.0.260.0030.00615.27
7.0.250.0060.00615.36
7.0.240.0030.00815.60
7.0.230.0040.01115.54
7.0.220.0040.01115.69
7.0.210.0030.00615.53
7.0.200.0100.00516.23
7.0.190.0040.01115.42
7.0.180.0120.00315.33
7.0.170.0000.01315.17
7.0.160.0000.00815.40
7.0.150.0070.00315.46
7.0.140.0080.03518.78
7.0.130.0040.00415.45
7.0.120.0050.00315.27
7.0.110.0040.00715.50
7.0.100.0110.00415.49
7.0.90.0080.00015.33
7.0.80.0030.00815.12
7.0.70.0050.04117.56
7.0.60.0020.04917.52
7.0.50.0100.04017.88
7.0.40.0050.03216.72
7.0.30.0110.02216.60
7.0.20.0030.04016.87
7.0.10.0030.04916.86
7.0.00.0090.02716.84
5.6.400.0120.00614.24
5.6.390.0080.00014.41
5.6.380.0030.00914.35
5.6.370.0060.00314.39
5.6.360.0030.00614.38
5.6.350.0070.00714.14
5.6.340.0080.00414.15
5.6.330.0060.00614.32
5.6.320.0030.00714.66
5.6.310.0030.00914.30
5.6.300.0030.01014.31
5.6.290.0060.00914.21
5.6.280.0050.03717.69
5.6.270.0090.00614.13
5.6.260.0040.01114.43
5.6.250.0100.00314.59
5.6.240.0070.00314.59
5.6.230.0110.00414.55
5.6.220.0120.04217.39
5.6.210.0030.05217.35
5.6.200.0050.03217.77
5.6.190.0020.02917.75
5.6.180.0030.05317.70
5.6.170.0080.04517.78
5.6.160.0060.02317.63
5.6.150.0060.02817.70
5.6.140.0070.03917.82
5.6.130.0100.04317.63
5.6.120.0100.03817.64
5.6.110.0020.05417.68
5.6.100.0110.03817.53
5.6.90.0030.05017.75
5.6.80.0020.04617.32
5.6.70.0070.04717.14
5.6.60.0120.02617.41
5.6.50.0100.04217.37
5.6.40.0110.04517.32
5.6.30.0040.04017.45
5.6.20.0090.04717.17
5.6.10.0050.03517.40
5.6.00.0020.03417.37
5.5.380.0060.00314.18
5.5.370.0090.00413.94
5.5.360.0080.04417.47
5.5.350.0030.04717.59
5.5.340.0050.04917.67
5.5.330.0110.04317.78
5.5.320.0110.04117.44
5.5.310.0100.04017.44
5.5.300.0070.03317.39
5.5.290.0090.03317.41
5.5.280.0040.04217.59
5.5.270.0070.04317.45
5.5.260.0090.04117.77
5.5.250.0050.03717.39
5.5.240.0070.02817.29
5.5.230.0080.04117.20
5.5.220.0050.04417.20
5.5.210.0100.02717.13
5.5.200.0060.04616.92
5.5.190.0150.03517.29
5.5.180.0070.02817.03
5.5.170.0040.01114.15
5.5.160.0110.04117.33
5.5.150.0030.03317.22
5.5.140.0110.03817.20
5.5.130.0020.03917.13
5.5.120.0130.03717.03
5.5.110.0080.04017.26
5.5.100.0100.03617.20
5.5.90.0070.04417.23
5.5.80.0160.03317.11
5.5.70.0090.04217.18
5.5.60.0120.04016.97
5.5.50.0090.04217.26
5.5.40.0050.03817.30
5.5.30.0110.03817.20
5.5.20.0060.04317.12
5.5.10.0030.04717.08
5.5.00.0140.03317.10
5.4.450.0080.04515.21
5.4.440.0070.04515.29
5.4.430.0080.04215.32
5.4.420.0050.04515.36
5.4.410.0000.04715.24
5.4.400.0100.04015.15
5.4.390.0050.04015.15
5.4.380.0030.03315.14
5.4.370.0050.04115.00
5.4.360.0070.02915.19
5.4.350.0050.04215.18
5.4.340.0060.04315.10
5.4.330.0060.00611.21
5.4.320.0090.03815.13
5.4.310.0090.03915.06
5.4.300.0040.02615.19
5.4.290.0050.04515.00
5.4.280.0080.04315.05
5.4.270.0070.02715.20
5.4.260.0090.02315.02
5.4.250.0050.03115.15
5.4.240.0060.04015.16
5.4.230.0070.04215.03
5.4.220.0050.03715.11
5.4.210.0070.04115.14
5.4.200.0110.03015.10
5.4.190.0120.03415.13
5.4.180.0020.03715.09
5.4.170.0030.04315.00
5.4.160.0100.02715.09
5.4.150.0070.04214.99
5.4.140.0060.04113.90
5.4.130.0070.04013.80
5.4.120.0050.04413.77
5.4.110.0070.03913.77
5.4.100.0090.03313.82
5.4.90.0100.03713.74
5.4.80.0080.02613.85
5.4.70.0070.03013.77
5.4.60.0050.03913.86
5.4.50.0100.02313.76
5.4.40.0040.02413.82
5.4.30.0100.02813.81
5.4.20.0020.03313.85
5.4.10.0070.04013.76
5.4.00.0050.03013.53
5.3.290.0070.04012.92
5.3.280.0030.03012.92
5.3.270.0030.03412.91
5.3.260.0020.03112.91
5.3.250.0070.04012.91
5.3.240.0080.03812.93
5.3.230.0020.03212.95
5.3.220.0030.04312.87
5.3.210.0070.04312.85
5.3.200.0040.03112.86
5.3.190.0020.03512.86
5.3.180.0020.03712.89
5.3.170.0050.03812.89
5.3.160.0040.03112.89
5.3.150.0080.04112.92
5.3.140.0060.03612.83
5.3.130.0020.05012.91
5.3.120.0050.04112.88
5.3.110.0060.02212.88
5.3.100.0040.04312.65
5.3.90.0030.03012.62
5.3.80.0030.04112.58
5.3.70.0070.04112.58
5.3.60.0100.03912.65
5.3.50.0150.02712.56
5.3.40.0050.02612.53
5.3.30.0080.03712.60
5.3.20.0040.03312.39
5.3.10.0040.02512.45
5.3.00.0040.02912.41
5.2.170.0100.06012.22
5.2.160.0000.05312.22
5.2.150.0130.05712.22
5.2.140.0070.04012.22
5.2.130.0000.04012.22
5.2.120.0030.02712.22
5.2.110.0030.03012.22
5.2.100.0100.02312.22
5.2.90.0000.03012.22
5.2.80.0030.03012.22
5.2.70.0000.03012.22
5.2.60.0100.02312.22
5.2.50.0070.02712.22
5.2.40.0030.03312.22
5.2.30.0070.02712.22
5.2.20.0030.02712.22
5.2.10.0000.03012.22
5.2.00.0000.03012.22
5.1.60.0000.02712.22
5.1.50.0030.03012.22
5.1.40.0000.03012.22
5.1.30.0000.06012.22
5.1.20.0070.03712.22
5.1.10.0000.03012.22
5.1.00.0100.02012.22
5.0.50.0070.03312.22
5.0.40.0030.02712.22
5.0.30.0030.03312.22
5.0.20.0030.04012.22
5.0.10.0070.03012.22
5.0.00.0000.07012.22
4.4.90.0000.01712.22
4.4.80.0000.02312.22
4.4.70.0030.01712.22
4.4.60.0030.01312.22
4.4.50.0030.01312.22
4.4.40.0030.02312.22
4.4.30.0070.01012.22
4.4.20.0000.01712.22
4.4.10.0000.01712.22
4.4.00.0000.05712.22
4.3.110.0070.02312.22
4.3.100.0000.01712.22
4.3.90.0030.03012.22
4.3.80.0000.05012.22
4.3.70.0100.01712.22
4.3.60.0030.03312.22
4.3.50.0000.02312.22
4.3.40.0000.04712.22
4.3.30.0000.02312.22
4.3.20.0030.01312.22
4.3.10.0000.01712.22
4.3.00.0000.02312.22

preferences:
46.07 ms | 400 KiB | 5 Q