3v4l.org

run code in 300+ PHP versions simultaneously
<?php function suma() { static $num1 = 0; echo $num1."\n"; $num1++; } function otro() { echo "otra ejecucion"."\n"; } //$i = 0; for ($i = 0; $i < 5; $i++, suma(), otro()) { }

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.70.0100.00716.50
8.3.60.0150.00716.47
8.3.50.0060.01218.45
8.3.40.0110.01118.84
8.3.30.0070.00718.75
8.3.20.0080.00018.79
8.3.10.0050.00321.13
8.3.00.0000.00823.61
8.2.180.0120.00916.38
8.2.170.0040.01122.96
8.2.160.0130.00320.52
8.2.150.0050.00224.18
8.2.140.0070.00024.66
8.2.130.0040.00419.82
8.2.120.0070.00026.35
8.2.110.0030.00621.07
8.2.100.0080.00317.92
8.2.90.0000.00819.07
8.2.80.0000.00818.05
8.2.70.0040.00417.78
8.2.60.0090.00017.93
8.2.50.0040.00418.10
8.2.40.0040.00419.21
8.2.30.0070.00019.50
8.2.20.0000.00818.09
8.2.10.0040.00419.85
8.2.00.0030.00319.41
8.1.280.0040.01125.92
8.1.270.0080.00021.97
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0030.00720.93
8.1.230.0080.00317.77
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0040.00418.78
8.1.150.0020.00518.92
8.1.140.0000.00717.67
8.1.130.0000.00719.07
8.1.120.0060.00317.43
8.1.110.0080.00317.41
8.1.100.0000.01017.41
8.1.90.0000.00817.25
8.1.80.0050.00217.29
8.1.70.0000.00717.23
8.1.60.0040.00417.52
8.1.50.0040.00417.55
8.1.40.0000.01217.33
8.1.30.0030.00617.64
8.1.20.0040.00417.59
8.1.10.0040.00417.46
8.1.00.0040.00417.34
8.0.300.0030.00518.77
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0070.00017.16
8.0.260.0030.00317.12
8.0.250.0070.00016.86
8.0.240.0000.00716.90
8.0.230.0000.00716.92
8.0.220.0070.00316.84
8.0.210.0030.00316.95
8.0.200.0060.00316.88
8.0.190.0060.00316.98
8.0.180.0040.00416.76
8.0.170.0000.00816.94
8.0.160.0000.00716.95
8.0.150.0000.00716.74
8.0.140.0070.00016.87
8.0.130.0000.00713.30
8.0.120.0030.00516.84
8.0.110.0000.00716.84
8.0.100.0070.00016.75
8.0.90.0080.00016.75
8.0.80.0090.01116.87
8.0.70.0040.00416.93
8.0.60.0000.00816.92
8.0.50.0070.00016.86
8.0.30.0100.00717.14
8.0.20.0090.01117.40
8.0.10.0000.00816.94
8.0.00.0130.00516.80
7.4.330.0020.00215.55
7.4.320.0040.00416.36
7.4.300.0030.00316.52
7.4.290.0080.00016.42
7.4.280.0040.00416.50
7.4.270.0070.00016.61
7.4.260.0040.00416.48
7.4.250.0040.00416.42
7.4.240.0030.00316.52
7.4.230.0000.00716.49
7.4.220.0000.00816.57
7.4.210.0080.00816.54
7.4.200.0030.00316.71
7.4.160.0080.01016.53
7.4.140.0110.00917.86
7.4.130.0120.00616.48
7.4.120.0100.01016.46
7.4.110.0100.00716.36
7.4.100.0110.00516.56
7.4.90.0070.01116.39
7.4.80.0190.01519.39
7.4.70.0140.00716.73
7.4.60.0110.00516.51
7.4.50.0070.01016.36
7.4.40.0090.00916.54
7.4.00.0070.00714.82
7.3.330.0000.00613.16
7.3.320.0000.00613.03
7.3.310.0000.00716.11
7.3.300.0030.00316.34
7.3.290.0000.00716.29
7.3.280.0070.00716.24
7.3.260.0080.01116.50
7.3.240.0110.00716.42
7.3.230.0060.01116.44
7.3.210.0100.00716.57
7.3.200.0090.01316.50
7.3.190.0090.00916.70
7.3.180.0130.00316.55
7.3.170.0110.00516.50
7.3.160.0120.00616.39
7.3.10.0100.00616.64
7.3.00.0040.00816.35
7.2.330.0120.00916.59
7.2.320.0130.01016.49
7.2.310.0100.01016.72
7.2.300.0110.00616.75
7.2.290.0050.01416.41
7.2.130.0060.00616.79
7.2.120.0030.01316.77
7.2.110.0070.00417.00
7.2.100.0000.01816.86
7.2.90.0060.00916.64
7.2.80.0070.00716.89
7.2.70.0050.00816.79
7.2.60.0110.00915.81
7.2.50.0080.01115.64
7.2.40.0110.00915.77
7.2.30.0200.00416.02
7.2.20.0080.00915.91
7.2.10.0130.01115.79
7.2.00.0100.00615.97
7.1.250.0100.00015.83
7.1.200.0070.00715.51
7.1.170.0250.00013.79
7.1.160.0220.00713.65
7.1.150.0230.00913.58
7.1.140.0140.00813.83
7.1.130.0210.00313.54
7.1.120.0200.00513.56
7.1.110.0270.00213.40
7.1.100.0150.01213.49
7.1.90.0770.00313.78
7.1.80.0120.01513.79
7.1.70.0120.00913.74
7.1.60.0380.00832.00
7.1.50.0320.01331.87
7.1.40.0340.01431.77
7.1.30.0260.01331.75
7.1.20.0330.01131.67
7.1.10.0120.00913.41
7.1.00.0170.00813.69

preferences:
68.4 ms | 400 KiB | 5 Q