3v4l.org

run code in 300+ PHP versions simultaneously
<?php function build_array() { for ($i=0;$i<10000;$i++){ $a[$i]=$i; } $i=null; return $a; } echo memory_get_usage(true)."\n\r"; $a = build_array(); echo memory_get_usage(true)."\n\r"; unset($a); echo memory_get_usage(true)."\n\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.0060.00915.31
7.4.00.0070.01415.28
7.3.130.0040.01515.20
7.3.120.0070.01115.09
7.3.110.0090.00915.02
7.3.100.0060.00915.13
7.3.90.0040.00414.89
7.3.80.0030.01015.09
7.3.70.0050.00515.27
7.3.60.0130.00314.90
7.3.50.0030.01214.88
7.3.40.0060.00615.21
7.3.30.0030.01015.08
7.3.20.0060.00916.66
7.3.10.0000.01216.89
7.3.00.0090.00316.72
7.2.260.0030.01715.54
7.2.250.0100.01015.27
7.2.240.0100.00315.20
7.2.230.0040.01215.52
7.2.220.0040.01515.53
7.2.210.0060.00615.25
7.2.200.0030.01015.44
7.2.190.0040.01115.50
7.2.180.0100.00315.30
7.2.170.0080.00315.30
7.2.160.0030.01415.47
7.2.150.0000.01117.02
7.2.140.0060.01017.07
7.2.130.0030.01016.96
7.2.120.0070.00716.82
7.2.110.0030.01016.89
7.2.100.0000.01016.78
7.2.90.0090.01216.75
7.2.80.0050.01417.08
7.2.70.0030.01317.14
7.2.60.0090.01317.06
7.2.50.0110.00417.04
7.2.40.0060.01217.01
7.2.30.0000.01417.04
7.2.20.0000.01416.98
7.2.10.0090.00616.86
7.2.00.0060.01016.65
7.1.330.0040.00816.00
7.1.320.0040.01215.91
7.1.310.0100.00315.80
7.1.300.0070.00715.78
7.1.290.0030.00615.68
7.1.280.0000.01315.96
7.1.270.0060.00615.95
7.1.260.0070.00715.69
7.1.250.0070.00315.77
7.1.240.0030.00915.82
7.1.230.0080.00615.82
7.1.220.0070.00415.61
7.1.210.0110.00315.76
7.1.200.0040.01115.98
7.1.190.0000.01515.80
7.1.180.0000.01315.76
7.1.170.0100.01015.54
7.1.160.0070.00715.83
7.1.150.0000.01515.81
7.1.140.0070.00715.54
7.1.130.0060.00315.80
7.1.120.0060.00915.95
7.1.110.0030.00615.97
7.1.100.0070.00715.97
7.1.90.0030.01115.74
7.1.80.0030.01516.02
7.1.70.0040.00516.55
7.1.60.0110.00917.47
7.1.50.0110.00816.37
7.1.40.0030.01015.96
7.1.30.0030.00915.60
7.1.20.0040.00415.70
7.1.10.0090.00615.96
7.1.00.0030.04319.14
7.0.330.0040.00415.66
7.0.320.0000.01415.33
7.0.310.0070.01115.51
7.0.300.0040.01515.23
7.0.290.0000.01715.23
7.0.280.0060.00615.38
7.0.270.0000.01615.49
7.0.260.0040.00815.20
7.0.250.0060.00315.29
7.0.240.0000.01515.46
7.0.230.0030.00715.43
7.0.220.0060.00915.38
7.0.210.0000.01115.36
7.0.200.0030.00916.18
7.0.190.0000.01015.45
7.0.180.0030.01015.47
7.0.170.0030.01015.23
7.0.160.0000.00815.20
7.0.150.0030.00915.52
7.0.140.0000.01215.64
7.0.130.0040.00815.52
7.0.120.0030.00915.23
7.0.110.0060.00315.23
7.0.100.0060.00915.43
7.0.90.0060.00915.39
7.0.80.0130.00315.41
7.0.70.0030.00915.46
7.0.60.0100.04117.75
7.0.50.0070.04016.85
7.0.40.0600.03217.08
7.0.30.0800.03217.13
7.0.20.0600.03517.13
7.0.10.0800.03417.18
7.0.00.0810.03517.05
5.6.400.0040.01115.85
5.6.390.0130.00615.89
5.6.380.0030.01415.88
5.6.370.0030.01416.04
5.6.360.0050.01415.85
5.6.350.0060.00815.43
5.6.340.0130.00315.35
5.6.330.0030.01315.68
5.6.320.0030.01315.22
5.6.310.0070.01015.61
5.6.300.0030.01215.75
5.6.290.0170.00315.51
5.6.280.0050.04019.07
5.6.270.0030.01415.48
5.6.260.0060.01215.74
5.6.250.0100.01315.72
5.6.240.0060.01215.95
5.6.230.0120.00315.73
5.6.220.0070.00715.66
5.6.210.0060.05018.83
5.6.200.0110.04517.61
5.6.190.0570.03818.72
5.6.180.0580.03418.85
5.6.170.0620.03018.62
5.6.160.0590.03318.55
5.6.150.0520.03618.64
5.6.140.0650.04118.68
5.6.130.0670.04018.68
5.6.120.0080.03618.62
5.6.110.0150.03018.71
5.6.100.0270.03418.63
5.6.90.0600.03518.75
5.6.80.0550.03618.28
5.6.70.0600.03618.36
5.6.60.0530.03718.32
5.6.50.0650.03418.10
5.6.40.0680.03318.27
5.6.30.0550.03318.26
5.6.20.0730.02718.24
5.6.10.0670.03218.27
5.6.00.0580.02918.35
5.5.380.0040.01815.54
5.5.370.0060.00915.45
5.5.360.0070.01015.64
5.5.350.0120.04418.60
5.5.340.0080.04517.44
5.5.330.0390.03318.53
5.5.320.0670.03818.46
5.5.310.0550.03218.72
5.5.300.0550.03618.45
5.5.290.0580.03618.38
5.5.280.0100.03518.41
5.5.270.0100.03518.55
5.5.260.0600.03218.51
5.5.250.0650.03218.40
5.5.240.0600.03318.31
5.5.230.0580.03518.19
5.5.220.0770.03617.96
5.5.210.0560.04118.19
5.5.200.0740.04418.26
5.5.190.0740.03118.05
5.5.180.0630.04018.21
5.5.170.0070.00715.54
5.5.160.0600.03018.04
5.5.150.0470.03918.06
5.5.140.0550.03418.00
5.5.130.0510.03818.10
5.5.120.0540.03618.17
5.5.110.0530.03418.24
5.5.100.0720.03718.20
5.5.90.0700.03517.96
5.5.80.0570.03318.16
5.5.70.0630.02818.05
5.5.60.0580.02818.04
5.5.50.0700.03318.05
5.5.40.0670.03217.86
5.5.30.0670.03318.07
5.5.20.0720.04318.04
5.5.10.0600.04118.13
5.5.00.0600.03317.90

preferences:
55.91 ms | 1261 KiB | 5 Q