3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_array(){ return ['a','b']; } $array = my_array(); $item1 = array_pop($array); $item2 = array_pop(my_array());

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.0160.00318.32
8.3.60.0110.00716.63
8.3.50.0120.00721.29
8.3.40.0000.01418.70
8.3.30.0040.01118.59
8.3.20.0030.00520.29
8.3.10.0050.00323.42
8.3.00.0000.00821.82
8.2.180.0080.00816.38
8.2.170.0120.00322.96
8.2.160.0030.01020.55
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.86
8.2.120.0000.00826.35
8.2.110.0180.00021.06
8.2.100.0060.00617.55
8.2.90.0030.00619.28
8.2.80.0040.00417.97
8.2.70.0040.00417.49
8.2.60.0040.00418.04
8.2.50.0060.00318.09
8.2.40.0030.00720.47
8.2.30.0070.00019.46
8.2.20.0000.00717.54
8.2.10.0040.00418.05
8.2.00.0040.00418.09
8.1.280.0150.00425.92
8.1.270.0050.00322.05
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00720.88
8.1.230.0040.00717.52
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0050.00319.01
8.1.180.0040.00418.10
8.1.170.0030.00618.55
8.1.160.0070.00020.56
8.1.150.0020.00518.84
8.1.140.0050.00319.54
8.1.130.0000.00717.58
8.1.120.0000.00717.40
8.1.110.0040.00417.26
8.1.100.0040.00417.30
8.1.90.0000.00817.37
8.1.80.0070.00017.41
8.1.70.0000.00717.40
8.1.60.0120.00017.50
8.1.50.0040.00417.44
8.1.40.0040.00417.46
8.1.30.0040.00417.58
8.1.20.0030.00617.61
8.1.10.0000.00717.53
8.1.00.0060.00317.31
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0050.00318.41
8.0.270.0070.00017.20
8.0.260.0040.00417.10
8.0.250.0030.00616.96
8.0.240.0040.00416.95
8.0.230.0030.00317.00
8.0.220.0040.00716.82
8.0.210.0030.00516.95
8.0.200.0030.00616.93
8.0.190.0030.00616.93
8.0.180.0000.00716.93
8.0.170.0000.00716.92
8.0.160.0050.00316.88
8.0.150.0100.00016.86
8.0.140.0050.00216.90
8.0.130.0030.00313.30
8.0.120.0080.00016.86
8.0.110.0070.00016.82
8.0.100.0040.00416.84
8.0.90.0050.00216.95
8.0.80.0120.00316.91
8.0.70.0000.00716.71
8.0.60.0000.00716.81
8.0.50.0040.00416.92
8.0.30.0090.00916.96
8.0.20.0110.01017.40
8.0.10.0030.00616.89
8.0.00.0070.00916.71
7.4.330.0020.00216.80
7.4.320.0000.00716.54
7.4.300.0000.00616.40
7.4.290.0030.00316.61
7.4.280.0000.00816.34
7.4.270.0070.00016.44
7.4.260.0030.00316.47
7.4.250.0000.00816.58
7.4.240.0070.00016.62
7.4.230.0000.00716.39
7.4.220.0060.01216.54
7.4.210.0140.00016.53
7.4.200.0070.00016.40
7.4.160.0080.00816.44
7.4.150.0030.02017.40
7.4.140.0160.00717.86
7.4.130.0060.01316.41
7.4.120.0030.01416.53
7.4.110.0170.00716.45
7.4.100.0140.00916.51
7.4.90.0160.00016.48
7.4.80.0100.00619.39
7.4.70.0090.00616.41
7.4.60.0060.01216.45
7.4.50.0070.00316.39
7.4.40.0090.00916.50
7.4.30.0070.01016.47
7.4.00.0030.01015.20
7.3.330.0000.00613.31
7.3.320.0030.00313.22
7.3.310.0030.00316.36
7.3.300.0000.00716.27
7.3.290.0100.00616.34
7.3.280.0130.00216.34
7.3.270.0120.01217.40
7.3.260.0130.00716.26
7.3.250.0100.00816.33
7.3.240.0110.00616.43
7.3.230.0100.00716.52
7.3.210.0100.01316.57
7.3.200.0090.01219.39
7.3.190.0060.00916.33
7.3.180.0130.01016.27
7.3.170.0060.01116.34
7.3.160.0030.01716.55
7.3.10.0100.00816.29
7.3.00.0100.00616.55
7.2.330.0120.00616.60
7.2.320.0100.01316.53
7.2.310.0080.01216.77
7.2.300.0040.01216.49
7.2.290.0030.01316.35
7.2.130.0040.01016.86
7.2.120.0090.01016.75
7.2.110.0070.01016.67
7.2.100.0140.00116.69
7.2.90.0120.00516.75
7.2.80.0130.00416.58
7.2.70.0110.00216.76
7.2.60.0070.01016.83
7.2.50.0070.00816.54
7.2.40.0100.01016.41
7.2.30.0050.01016.35
7.2.20.0090.00716.58
7.2.10.0120.00316.57
7.2.00.0080.00817.42
7.1.250.0080.00615.59
7.1.200.0070.00415.52
7.1.100.0060.00617.84
7.1.70.0070.00317.10
7.1.60.0140.01119.40
7.1.50.0060.01516.66
7.1.00.0030.07722.43
7.0.200.0600.00314.49
7.0.60.0370.07319.86
7.0.50.0100.07317.87
7.0.40.0070.06320.18
7.0.30.0300.07020.33
7.0.20.0200.06720.09
7.0.10.0100.04020.22
7.0.00.0070.06020.09
5.6.280.0030.07320.78
5.6.210.0030.08020.48
5.6.200.0070.08018.19
5.6.190.0030.07320.48
5.6.180.0370.07720.60
5.6.170.0400.07320.55
5.6.160.0030.08020.55
5.6.150.0030.04018.24
5.6.140.0070.04718.15
5.6.130.0100.08018.22
5.6.120.0000.05021.02
5.6.110.0030.08720.98
5.6.100.0030.04020.89
5.6.90.0070.08321.03
5.6.80.0030.04020.41
5.5.350.0130.06320.43
5.5.340.0170.04317.95
5.5.330.0070.08020.27
5.5.320.0570.05020.46
5.5.310.0270.05020.32
5.5.300.0070.08017.96
5.5.290.0070.07718.04
5.5.280.0300.06020.77
5.5.270.0130.04720.86
5.5.260.0000.04720.79
5.5.250.0170.06720.77
5.5.240.0130.06020.36

preferences:
165.67 ms | 401 KiB | 5 Q