3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunc() { $myarray[] = array( 'a'=>1, 'b'=>"my name" ); return $myarray; } $myarray = myfunc(); print_r($myarray);

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.80.0040.00416.75
8.3.70.0150.00018.43
8.3.60.0030.01318.31
8.3.50.0140.00617.45
8.3.40.0070.00718.55
8.3.30.0030.01018.44
8.3.20.0000.00721.60
8.3.10.0050.00321.84
8.3.00.0040.00423.53
8.2.200.0000.00916.63
8.2.190.0140.00716.58
8.2.180.0070.01418.17
8.2.170.0060.01322.96
8.2.160.0070.00720.35
8.2.150.0000.00924.18
8.2.140.0040.01124.66
8.2.130.0040.00426.16
8.2.120.0070.00021.07
8.2.110.0050.00519.05
8.2.100.0090.00317.72
8.2.90.0000.00818.03
8.2.80.0060.00318.03
8.2.70.0050.00317.63
8.2.60.0030.00517.62
8.2.50.0040.00417.63
8.2.40.0000.00718.22
8.2.30.0040.00417.93
8.2.20.0040.00417.93
8.2.10.0070.00019.47
8.2.00.0040.00419.11
8.1.290.0000.01218.88
8.1.280.0070.00725.92
8.1.270.0030.00520.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0080.00321.04
8.1.220.0040.00417.74
8.1.210.0050.00319.16
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0000.00818.45
8.1.160.0000.00718.76
8.1.150.0000.00818.85
8.1.140.0040.00418.74
8.1.130.0080.00017.35
8.1.120.0000.00717.29
8.1.110.0040.00417.37
8.1.100.0030.00317.32
8.1.90.0050.00317.30
8.1.80.0000.00817.39
8.1.70.0000.00717.37
8.1.60.0060.00317.49
8.1.50.0040.00417.52
8.1.40.0000.00817.40
8.1.30.0000.00817.65
8.1.20.0000.00817.64
8.1.10.0080.00017.42
8.1.00.0050.00317.27
8.0.300.0070.00019.91
8.0.290.0090.00016.75
8.0.280.0050.00218.37
8.0.270.0000.00816.75
8.0.260.0030.00316.69
8.0.250.0000.00616.80
8.0.240.0040.00416.94
8.0.230.0030.00316.86
8.0.220.0070.00016.80
8.0.210.0030.00316.83
8.0.200.0030.00316.85
8.0.190.0070.00016.88
8.0.180.0030.00316.84
8.0.170.0080.00016.84
8.0.160.0070.00016.79
8.0.150.0000.00716.72
8.0.140.0050.00316.67
8.0.130.0030.00313.21
8.0.120.0030.00616.83
8.0.110.0000.00816.78
8.0.100.0030.00516.93
8.0.90.0070.00016.95
8.0.80.0060.00816.79
8.0.70.0070.00016.85
8.0.60.0040.00416.66
8.0.50.0000.00716.85
8.0.30.0130.00317.21
8.0.20.0130.00617.17
8.0.10.0030.00516.95
8.0.00.0100.00916.70
7.4.330.0050.00015.55
7.4.320.0000.00616.40
7.4.300.0030.00316.39
7.4.290.0050.00216.52
7.4.280.0070.00016.39
7.4.270.0070.00016.48
7.4.260.0070.00016.59
7.4.250.0030.00316.36
7.4.240.0040.00416.43
7.4.230.0030.00316.42
7.4.220.0000.00816.50
7.4.210.0050.00916.44
7.4.200.0040.00416.39
7.4.160.0110.00516.50
7.4.140.0130.00617.86
7.4.130.0060.01616.54
7.4.120.0030.01416.29
7.4.110.0120.00916.45
7.4.100.0200.00416.30
7.4.90.0040.01416.59
7.4.80.0100.01019.39
7.4.70.0110.00816.43
7.4.60.0030.01316.45
7.4.50.0030.01216.45
7.4.40.0080.00816.47
7.4.00.0110.00014.91
7.3.330.0000.00513.01
7.3.320.0030.00313.05
7.3.310.0030.00316.29
7.3.300.0030.00316.25
7.3.290.0090.00716.21
7.3.280.0110.00916.19
7.3.260.0110.00716.31
7.3.240.0110.00616.40
7.3.230.0090.01016.59
7.3.210.0060.01016.27
7.3.200.0230.00016.63
7.3.190.0080.01216.48
7.3.180.0090.00616.43
7.3.170.0060.01016.52
7.3.160.0030.01716.43
7.3.60.0120.00614.85
7.3.50.0070.00714.74
7.3.40.0070.00714.66
7.3.30.0000.01414.47
7.3.20.0100.00316.55
7.3.10.0070.00716.44
7.3.00.0040.01116.72
7.2.330.0070.01016.67
7.2.320.0130.00316.64
7.2.310.0040.01216.61
7.2.300.0070.01016.33
7.2.290.0120.00616.66
7.2.190.0040.00814.67
7.2.180.0070.00714.96
7.2.170.0120.00015.09
7.2.160.0000.01115.09
7.2.150.0100.00316.99
7.2.140.0130.00016.84
7.2.130.0090.00616.53
7.2.120.0070.00716.82
7.2.110.0050.00916.86
7.2.100.0110.01116.70
7.2.90.0000.01316.77
7.2.80.0060.00716.71
7.2.70.0060.01216.84
7.2.60.0120.00016.96
7.2.50.0160.00616.85
7.2.40.0090.01416.74
7.2.30.0000.01116.76
7.2.20.0030.01016.78
7.2.10.0110.01117.02
7.2.00.0130.00016.63
7.1.300.0060.00715.71
7.1.290.0000.01315.50
7.1.280.0090.00315.58
7.1.270.0100.01015.71
7.1.260.0090.00515.48
7.1.250.0030.00915.70

preferences:
43.17 ms | 401 KiB | 5 Q