3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Define que o arquivo terá a codificação de saída no formato css header("content-type: text/css"); // Gera números aleatórios de 0 a 15 $r= mt_rand ( 0, 15 ); dechex ($r ) ?>

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)
7.4.10.0070.01115.06
7.4.00.0070.01114.90
7.3.130.0070.01014.37
7.3.120.0110.00714.58
7.3.110.0070.00914.67
7.3.100.0060.00914.50
7.3.90.0080.00914.66
7.3.80.0050.01014.63
7.3.70.0090.00814.71
7.3.60.0030.00714.68
7.3.50.0030.00714.54
7.3.40.0060.00614.65
7.3.30.0040.00714.69
7.3.20.0040.01016.57
7.3.10.0020.01316.60
7.3.00.0070.00716.50
7.2.260.0080.01114.89
7.2.250.0090.01015.09
7.2.240.0060.01015.00
7.2.230.0050.00814.70
7.2.220.0080.00514.86
7.2.210.0050.01114.86
7.2.200.0050.00614.83
7.2.190.0050.00914.69
7.2.180.0060.00714.80
7.2.170.0040.00814.85
7.2.160.0090.00314.90
7.2.150.0070.00716.57
7.2.140.0040.01516.88
7.2.130.0060.00316.70
7.2.120.0090.00416.83
7.2.110.0080.00416.75
7.2.100.0030.01016.58
7.2.90.0080.00816.68
7.2.80.0030.00716.43
7.2.70.0120.00316.59
7.2.60.0030.01016.61
7.2.50.0070.00716.95
7.2.40.0040.00816.74
7.2.30.0090.00616.60
7.2.20.0000.01016.84
7.2.10.0060.00916.86
7.2.00.0030.00616.49
7.1.330.0050.01015.65
7.1.320.0080.00715.66
7.1.310.0050.00715.63
7.1.300.0070.00415.71
7.1.290.0050.00815.67
7.1.280.0060.00715.70
7.1.270.0060.00915.59
7.1.260.0050.00915.61
7.1.250.0060.00615.41
7.1.240.0000.01215.75
7.1.230.0040.01115.64
7.1.220.0030.01415.46
7.1.210.0040.01115.49
7.1.200.0060.00615.70
7.1.190.0030.00715.91
7.1.180.0030.01015.71
7.1.170.0030.01015.70
7.1.160.0040.01215.67
7.1.150.0030.00615.54
7.1.140.0070.00715.73
7.1.130.0060.00915.80
7.1.120.0030.01015.77
7.1.110.0070.00715.66
7.1.100.0030.01015.54
7.1.90.0030.01215.42
7.1.80.0000.01315.69
7.1.70.0030.01316.29
7.1.60.0120.00717.66
7.1.50.0040.01316.28
7.1.40.0040.01115.76
7.1.30.0030.00615.67
7.1.20.0100.00615.75
7.1.10.0000.01615.63
7.1.00.0050.04218.92
7.0.330.0090.00615.07
7.0.320.0100.00315.52
7.0.310.0060.00615.34
7.0.300.0070.00315.21
7.0.290.0040.00815.32
7.0.280.0040.00815.32
7.0.270.0110.00314.95
7.0.260.0030.00715.09
7.0.250.0090.00315.56
7.0.240.0030.00615.14
7.0.230.0030.00715.45
7.0.220.0040.00815.36
7.0.210.0040.00415.42
7.0.200.0160.00715.10
7.0.190.0030.01015.46
7.0.180.0120.00315.34
7.0.170.0040.00415.46
7.0.160.0060.00615.40
7.0.150.0030.00915.47
7.0.140.0060.00615.26
7.0.130.0050.00315.59
7.0.120.0030.00915.54
7.0.110.0030.01015.36
7.0.100.0000.01015.50
7.0.90.0090.00315.48
7.0.80.0100.00315.23
7.0.70.0110.00315.39
7.0.60.0120.04217.54
7.0.50.0120.03416.55
7.0.40.0050.02516.76
7.0.30.0120.04716.82
7.0.20.0140.02316.88
7.0.10.0060.02816.76
7.0.00.0070.04416.71
5.6.400.0000.01414.21
5.6.390.0090.00913.86
5.6.380.0120.00314.54
5.6.370.0120.00314.32
5.6.360.0040.00814.00
5.6.350.0030.00914.05
5.6.340.0030.00714.04
5.6.330.0050.00514.33
5.6.320.0080.00414.16
5.6.310.0120.00314.30
5.6.300.0080.00314.07
5.6.290.0100.00314.25
5.6.280.0000.02317.53
5.6.270.0040.01113.90
5.6.260.0070.00314.41
5.6.250.0110.00014.07
5.6.240.0000.01314.46
5.6.230.0080.00413.99
5.6.220.0110.00314.24
5.6.210.0120.01917.32
5.6.200.0060.04116.08
5.6.190.0060.03717.15
5.6.180.0120.02617.13
5.6.170.0120.03017.25
5.6.160.0080.04017.34
5.6.150.0080.02516.15
5.6.140.0080.03716.14
5.6.130.0030.04816.22
5.6.120.0110.03417.53
5.6.110.0110.03817.67
5.6.100.0100.03717.69
5.6.90.0070.04617.64
5.6.80.0050.03717.35
5.6.70.0110.00313.89
5.6.60.0040.00814.26
5.6.50.0050.00514.13
5.6.40.0110.00414.00
5.6.30.0040.01114.05
5.6.20.0060.00614.14
5.6.10.0000.01514.02
5.6.00.0000.01114.05
5.5.380.0030.01314.40
5.5.370.0070.00714.27
5.5.360.0040.00814.32
5.5.350.0180.03917.33
5.5.340.0020.02716.21
5.5.330.0030.03317.13
5.5.320.0190.03617.33
5.5.310.0170.04117.25
5.5.300.0050.03515.87
5.5.290.0050.04016.10
5.5.280.0050.03117.62
5.5.270.0030.03017.49
5.5.260.0100.02717.41
5.5.250.0070.02217.15
5.5.240.0070.04317.19
5.5.230.0040.00414.04
5.5.220.0070.00713.98
5.5.210.0080.00613.73
5.5.200.0050.00914.19
5.5.190.0060.00914.19
5.5.180.0090.00913.73
5.5.170.0110.00714.18
5.5.160.0090.00614.18
5.5.150.0100.00314.14
5.5.140.0030.01013.82
5.5.130.0120.00314.02
5.5.120.0070.00713.87
5.5.110.0040.00714.22
5.5.100.0070.00714.16
5.5.90.0060.00914.17
5.5.80.0000.00914.07
5.5.70.0080.00313.57
5.5.60.0000.01114.18
5.5.50.0000.01414.12
5.5.40.0040.00813.93
5.5.30.0070.00714.07
5.5.20.0140.00014.06
5.5.10.0030.01313.88
5.5.00.0000.01114.05
5.4.450.0330.02915.93
5.4.440.0330.02816.17
5.4.430.0340.02715.99
5.4.420.0250.03516.17
5.4.410.0260.03315.84
5.4.400.0320.02715.74
5.4.390.0330.02715.95
5.4.380.0300.02715.95
5.4.370.0230.03515.77
5.4.360.0380.03615.93
5.4.350.0350.03715.85
5.4.340.0250.02715.92
5.4.330.0090.00612.72
5.4.320.0080.02815.83
5.4.310.0000.03315.83
5.4.300.0070.02715.85
5.4.290.0180.03215.75
5.4.280.0370.02216.01
5.4.270.0280.02615.93
5.4.260.0280.02815.90
5.4.250.0280.02915.94
5.4.240.0300.02816.00
5.4.230.0280.03015.85
5.4.220.0300.03015.76
5.4.210.0320.02616.01
5.4.200.0320.02515.77
5.4.190.0380.02315.82
5.4.180.0320.03015.92
5.4.170.0250.03415.96
5.4.160.0280.03315.74
5.4.150.0300.02915.92
5.4.140.0310.02614.52
5.4.130.0250.02814.60
5.4.120.0320.03014.58
5.4.110.0350.02514.44
5.4.100.0320.02814.54
5.4.90.0310.02614.59
5.4.80.0250.02714.58
5.4.70.0330.02514.60
5.4.60.0250.03114.37
5.4.50.0250.03214.59
5.4.40.0220.03014.37
5.4.30.0320.02514.58
5.4.20.0340.02514.59
5.4.10.0410.02814.58
5.4.00.0330.03014.32

preferences:
36.44 ms | 400 KiB | 5 Q