3v4l.org

run code in 300+ PHP versions simultaneously
<?php //código com o problema function &olaMundoRef(){ return 'Ola mundo'. PHP_EOL; } //código sem problema function &olaMundo(){ $x = 'Ola mundo'; return $x; } echo olaMundoRef(); echo olaMundo();

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.4.10.0100.00719.50
8.3.140.0030.00716.61
8.3.130.0050.00318.38
8.3.120.0050.00518.84
8.3.110.0040.00720.94
8.3.100.0060.00324.06
8.3.90.0070.00026.77
8.3.80.0000.00917.97
8.3.70.0100.00616.50
8.3.60.0100.00718.31
8.3.50.0150.00721.99
8.3.40.0120.00318.84
8.3.30.0060.00918.74
8.3.20.0040.00419.16
8.3.10.0040.00421.77
8.3.00.0060.00319.38
8.2.250.0070.00016.48
8.2.240.0040.00417.07
8.2.230.0060.00322.58
8.2.220.0070.00437.54
8.2.210.0000.00826.77
8.2.200.0050.00518.41
8.2.190.0140.00316.63
8.2.180.0110.00718.54
8.2.170.0140.00422.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.01020.93
8.2.110.0090.00021.96
8.2.100.0120.00017.85
8.2.90.0090.00022.32
8.2.80.0030.00617.97
8.2.70.0040.00417.93
8.2.60.0070.00018.09
8.2.50.0040.00418.10
8.2.40.0000.00720.42
8.2.30.0070.00019.23
8.2.20.0080.00018.11
8.2.10.0040.00417.96
8.2.00.0050.00317.79
8.1.300.0040.00418.56
8.1.290.0050.00530.84
8.1.280.0090.00625.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00323.91
8.1.230.0040.00722.10
8.1.220.0000.00817.88
8.1.210.0000.00918.77
8.1.200.0000.00917.35
8.1.190.0070.00317.13
8.1.180.0030.00518.10
8.1.170.0090.00021.98
8.1.160.0070.00018.78
8.1.150.0040.00420.23
8.1.140.0040.00419.54
8.1.130.0070.00019.00
8.1.120.0000.00717.27
8.1.110.0000.00717.37
8.1.100.0070.00017.37
8.1.90.0070.00017.39
8.1.80.0000.00817.38
8.1.70.0000.00717.37
8.1.60.0060.00317.59
8.1.50.0020.00517.39
8.1.40.0000.00717.54
8.1.30.0060.00317.50
8.1.20.0080.00017.65
8.1.10.0040.00417.39
8.1.00.0080.00017.43
8.0.300.0070.00019.98
8.0.290.0050.00316.75
8.0.280.0030.00318.37
8.0.270.0030.00317.25
8.0.260.0080.00017.23
8.0.250.0060.00017.03
8.0.240.0030.00516.92
8.0.230.0030.00316.96
8.0.220.0030.00316.80
8.0.210.0030.00316.79
8.0.200.0050.00516.81
8.0.190.0000.00716.95
8.0.180.0040.00416.80
8.0.170.0000.00716.95
8.0.160.0030.00316.95
8.0.150.0040.00416.84
8.0.140.0030.00516.81
8.0.130.0080.00013.27
8.0.120.0000.00716.85
8.0.110.0070.00016.95
8.0.100.0000.00716.78
8.0.90.0000.00716.92
8.0.80.0100.00716.84
8.0.70.0000.00716.92
8.0.60.0040.00416.86
8.0.50.0040.00416.99
8.0.30.0070.01416.91
8.0.20.0100.01017.40
8.0.10.0070.00016.86
8.0.00.0090.00916.89
7.4.330.0050.00015.55
7.4.320.0060.00016.46
7.4.300.0030.00316.50
7.4.290.0030.00316.55
7.4.280.0080.00016.49
7.4.270.0070.00016.49
7.4.260.0040.00716.50
7.4.250.0050.00216.52
7.4.240.0070.00016.51
7.4.230.0030.00316.70
7.4.220.0130.01316.68
7.4.210.0070.01216.54
7.4.200.0000.00716.61
7.4.160.0130.00616.48
7.4.150.0130.00417.40
7.4.140.0130.01017.86
7.4.130.0080.00916.62
7.4.120.0090.01116.43
7.4.110.0000.01916.63
7.4.100.0060.01016.45
7.4.90.0050.01416.55
7.4.80.0110.00519.39
7.4.70.0070.01016.33
7.4.60.0040.01416.33
7.4.50.0030.01616.31
7.4.40.0110.00516.73
7.4.30.0080.00816.52
7.4.10.0030.01014.77
7.4.00.0080.00814.77
7.3.330.0030.00313.09
7.3.320.0000.00613.30
7.3.310.0030.00316.22
7.3.300.0000.00716.36
7.3.290.0060.00016.17
7.3.280.0100.00916.29
7.3.270.0140.00317.40
7.3.260.0110.01016.49
7.3.250.0100.00816.53
7.3.240.0130.00716.42
7.3.230.0100.00616.43
7.3.210.0090.00916.35
7.3.200.0120.00619.39
7.3.190.0090.01316.50
7.3.180.0120.00416.44
7.3.170.0110.00816.28
7.3.160.0100.00616.38
7.3.130.0040.01414.87
7.3.120.0100.00714.83
7.3.110.0070.01414.84
7.3.100.0000.01114.59
7.3.90.0130.00314.91
7.3.80.0000.01315.14
7.3.70.0090.00314.87
7.3.60.0070.01014.82
7.3.50.0090.00614.62
7.3.40.0060.00914.62
7.3.30.0100.01014.78
7.3.20.0030.01616.53
7.3.10.0060.01116.37
7.3.00.0070.00516.55
7.2.330.0040.01316.46
7.2.320.0120.00616.68
7.2.310.0080.00816.78
7.2.300.0100.00716.62
7.2.290.0120.00716.37
7.2.260.0100.00715.10
7.2.250.0100.01014.84
7.2.240.0040.01214.91
7.2.230.0130.00314.70
7.2.220.0150.00314.54
7.2.210.0090.00314.93
7.2.200.0070.00714.99
7.2.190.0090.00914.95
7.2.180.0090.00314.52
7.2.170.0060.01215.02
7.2.160.0060.00614.86
7.2.150.0070.01316.66
7.2.140.0090.00616.77
7.2.130.0060.00916.62
7.2.120.0030.01216.69
7.2.110.0070.00716.68
7.2.100.0090.00716.81
7.2.90.0160.00416.67
7.2.80.0060.00816.81
7.2.70.0070.01116.66
7.2.60.0060.00716.64
7.2.50.0100.00916.65
7.2.40.0100.00716.79
7.2.30.0130.00916.96
7.2.20.0070.01316.85
7.2.10.0110.00816.77
7.2.00.0070.01116.94
7.1.330.0060.00915.65
7.1.320.0120.00615.69
7.1.310.0070.00715.59
7.1.300.0040.01115.44
7.1.290.0030.01015.80
7.1.280.0120.00815.68
7.1.270.0040.00815.47
7.1.260.0040.01115.49
7.1.250.0080.00715.49
7.1.240.0090.00615.60
7.1.230.0020.01315.51
7.1.220.0040.00815.54
7.1.210.0060.00815.77
7.1.200.0060.00615.43
7.1.190.0050.00715.58
7.1.180.0070.00115.58
7.1.170.0030.01215.61
7.1.160.0070.00915.78
7.1.150.0090.01015.91
7.1.140.0090.01015.96
7.1.130.0120.00715.92
7.1.120.0100.00816.05
7.1.110.0100.00715.78
7.1.100.0070.01115.80
7.1.90.0100.00815.77
7.1.80.0090.00815.58
7.1.70.0060.01015.83
7.1.60.0150.00720.39
7.1.50.0150.01221.41
7.1.40.0140.01221.15
7.1.30.0980.01021.22
7.1.20.0170.01021.14
7.1.10.0090.00615.19
7.1.00.0070.01917.00
7.0.330.0120.00715.18
7.0.320.0030.00715.28
7.0.310.0060.00715.22
7.0.300.0090.00515.29
7.0.290.0040.00915.31
7.0.280.0070.00815.27
7.0.270.0070.01215.69
7.0.260.0100.01015.56
7.0.250.0080.00815.40
7.0.240.0110.00815.47
7.0.230.0080.01015.51
7.0.220.0060.01315.26
7.0.210.0060.01015.10
7.0.200.0090.00915.40
7.0.190.0060.01015.04
7.0.180.0080.00914.88
7.0.170.0080.01014.92
7.0.160.0090.01014.87
7.0.150.0080.00714.91
7.0.140.0060.02116.79
7.0.130.0080.02216.71
7.0.120.0080.01616.88
7.0.110.0080.01916.75
7.0.100.0070.02116.63
7.0.90.0080.02416.70
7.0.80.0090.02016.72
7.0.70.0080.01916.66
7.0.60.0080.01916.62
7.0.50.0080.02416.70
7.0.40.0070.02015.82
7.0.30.0070.02515.89
7.0.20.0060.02115.70
7.0.10.0060.02015.82
7.0.00.0070.02015.83
5.6.400.0040.01114.11
5.6.390.0030.00914.20
5.6.380.0100.00314.31
5.6.370.0020.01014.24
5.6.360.0030.01014.49
5.6.350.0070.00914.25
5.6.340.0040.00814.24
5.6.330.0070.00514.47
5.6.320.0050.01014.35
5.6.310.0070.00514.38
5.6.300.0120.02116.32
5.6.290.0090.03817.61
5.6.280.0110.03817.64
5.6.270.0120.03217.57
5.6.260.0100.03417.58
5.6.250.0130.03417.61
5.6.240.0070.04117.57
5.6.230.0090.03617.55
5.6.220.0100.03617.63
5.6.210.0100.03717.55
5.6.200.0070.04117.44
5.6.190.0160.03417.55
5.6.180.0090.03617.46
5.6.170.0110.03217.50
5.6.160.0090.03617.59
5.6.150.0080.03517.51
5.6.140.0110.03417.54
5.6.130.0100.03717.44
5.6.120.0090.03317.52
5.6.110.0090.04017.59
5.6.100.0110.03717.50
5.6.90.0130.03217.47
5.6.80.0100.03317.29
5.6.70.0080.03317.17
5.6.60.0120.03017.10
5.6.50.0100.03017.15
5.6.40.0120.03217.26
5.6.30.0090.03417.12
5.6.20.0090.03617.20
5.6.10.0100.03317.30
5.6.00.0100.03317.20
5.5.380.0130.03814.34
5.5.370.0130.04114.29
5.5.360.0090.03314.31
5.5.350.0080.03714.27
5.5.340.0090.04314.48
5.5.330.0120.03914.57
5.5.320.0130.03514.55
5.5.310.0090.03714.58
5.5.300.0080.03514.55
5.5.290.0090.04614.61
5.5.280.0130.03814.61
5.5.270.0150.03814.54
5.5.260.0120.04514.61
5.5.250.0090.04414.32
5.5.240.0110.03414.06
5.5.230.0130.03213.98
5.5.220.0140.02514.17
5.5.210.0120.04013.96
5.5.200.0100.03714.10
5.5.190.0140.03114.09
5.5.180.0110.04113.95
5.5.170.0000.00610.82
5.5.160.0120.02914.20
5.5.150.0130.03514.08
5.5.140.0120.03514.21
5.5.130.0130.03314.17
5.5.120.0110.04214.07
5.5.110.0110.03214.24
5.5.100.0090.03414.12
5.5.90.0080.03614.14
5.5.80.0130.02713.99
5.5.70.0100.04014.07
5.5.60.0120.02714.05
5.5.50.0110.03013.95
5.5.40.0130.02914.12
5.5.30.0110.03814.10
5.5.20.0130.02813.86
5.5.10.0080.04214.22
5.5.00.0130.03414.19
5.4.450.0120.04015.11
5.4.440.0140.03215.17
5.4.430.0100.04515.31
5.4.420.0130.03815.11
5.4.410.0140.03115.06
5.4.400.0130.03614.89
5.4.390.0160.03214.98
5.4.380.0080.02815.13
5.4.370.0060.03715.03
5.4.360.0100.03115.01
5.4.350.0100.03214.82
5.4.340.0110.03014.94
5.4.330.0040.00711.18
5.4.320.0080.03214.96
5.4.310.0120.03815.00
5.4.300.0130.03514.92
5.4.290.0110.03114.98
5.4.280.0080.04714.88
5.4.270.0120.02714.87
5.4.260.0100.03214.94
5.4.250.0080.03114.98
5.4.240.0090.04014.79
5.4.230.0090.03614.77
5.4.220.0110.03714.86
5.4.210.0120.03914.89
5.4.200.0140.03514.98
5.4.190.0100.03914.89
5.4.180.0130.03914.81
5.4.170.0090.03014.92
5.4.160.0110.03114.71
5.4.150.0090.03714.89
5.4.140.0140.02713.88
5.4.130.0120.02813.78
5.4.120.0100.03613.89
5.4.110.0110.03713.82
5.4.100.0110.02813.75
5.4.90.0110.03413.66
5.4.80.0120.03613.83
5.4.70.0120.02913.66
5.4.60.0110.03113.75
5.4.50.0100.03613.74
5.4.40.0100.02713.64
5.4.30.0060.03113.73
5.4.20.0060.03013.73
5.4.10.0120.03513.78
5.4.00.0110.02713.44
5.3.290.0100.03312.67
5.3.280.0120.03912.71
5.3.270.0120.03312.47
5.3.260.0050.04212.61
5.3.250.0120.03512.63
5.3.240.0050.03412.57
5.3.230.0070.03712.63
5.3.220.0090.04012.49
5.3.210.0110.03812.44
5.3.200.0080.02712.65
5.3.190.0100.03712.47
5.3.180.0110.03512.69
5.3.170.0110.02412.80
5.3.160.0100.03612.64
5.3.150.0100.03612.67
5.3.140.0090.03612.53
5.3.130.0100.04112.56
5.3.120.0080.03712.71
5.3.110.0100.03912.73
5.3.100.0110.03612.29
5.3.90.0110.03512.50
5.3.80.0100.03612.29
5.3.70.0100.03312.37
5.3.60.0110.03412.29
5.3.50.0070.03712.30
5.3.40.0090.02912.26
5.3.30.0120.03412.23
5.3.20.0100.02811.99
5.3.10.0100.03312.08
5.3.00.0070.03011.91
5.2.170.0110.02310.58
5.2.160.0070.03110.66
5.2.150.0080.03110.70
5.2.140.0070.03310.70
5.2.130.0070.03110.55
5.2.120.0080.02310.62
5.2.110.0050.02910.53
5.2.100.0060.03410.46
5.2.90.0080.02910.48
5.2.80.0100.02710.52
5.2.70.0070.03110.46
5.2.60.0080.02210.66
5.2.50.0080.02110.63
5.2.40.0040.02410.62
5.2.30.0080.02610.55
5.2.20.0060.02310.48
5.2.10.0100.02810.52
5.2.00.0060.03410.37
5.1.60.0080.02210.09
5.1.50.0090.02010.02
5.1.40.0070.02510.11
5.1.30.0090.02510.17
5.1.20.0100.02410.28
5.1.10.0060.02310.11
5.1.00.0050.02110.15
5.0.50.0090.0179.41
5.0.40.0060.0179.13
5.0.30.0050.0299.22
5.0.20.0070.0159.22
5.0.10.0060.0159.14
5.0.00.0060.0229.21
4.4.90.0080.0129.02
4.4.80.0050.0119.02
4.4.70.0060.0109.02
4.4.60.0040.0169.02
4.4.50.0040.0159.02
4.4.40.0050.0249.02
4.4.30.0050.0169.02
4.4.20.0030.0189.02
4.4.10.0040.0179.02
4.4.00.0060.0189.02
4.3.110.0040.0169.02
4.3.100.0040.0149.02
4.3.90.0060.0139.02
4.3.80.0020.0219.02
4.3.70.0030.0149.02
4.3.60.0050.0169.02
4.3.50.0060.0119.02
4.3.40.0070.0199.02
4.3.30.0020.0149.02
4.3.20.0020.0159.02
4.3.10.0040.0159.02
4.3.00.0040.0139.02

preferences:
31.73 ms | 403 KiB | 5 Q