3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create an array and push 5 elements on to it, then // print the number of elements in your array to the screen $types_of_fruit = array(); array_push($types_of_fruit, "Apples"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Bananas"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Oranges"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Lemons"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Limes"); echo $types_of_fruit . "<br />"; ?>

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.60.0160.00318.68
8.3.50.0130.00821.99
8.3.40.0080.00818.67
8.3.30.0070.00720.20
8.3.20.0080.00020.20
8.3.10.0030.00521.91
8.3.00.0030.00522.51
8.2.180.0170.01016.50
8.2.170.0040.01122.96
8.2.160.0130.00320.51
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0000.00820.69
8.2.110.0060.00320.35
8.2.100.0070.00617.84
8.2.90.0030.00619.22
8.2.80.0040.00419.21
8.2.70.0040.00417.61
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0050.00519.95
8.2.30.0040.00419.37
8.2.20.0000.00717.68
8.2.10.0000.00717.61
8.2.00.0040.00417.73
8.1.280.0070.01125.92
8.1.270.0060.00323.99
8.1.260.0000.00926.35
8.1.250.0030.00528.09
8.1.240.0070.01023.83
8.1.230.0040.00818.79
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.40
8.1.180.0040.00418.10
8.1.170.0040.00418.39
8.1.160.0000.00718.86
8.1.150.0090.00018.49
8.1.140.0040.00417.32
8.1.130.0000.00817.82
8.1.120.0040.00417.29
8.1.110.0040.00417.45
8.1.100.0040.00417.43
8.1.90.0040.00417.39
8.1.80.0040.00417.36
8.1.70.0040.00417.36
8.1.60.0000.00817.59
8.1.50.0040.00417.41
8.1.40.0000.00717.36
8.1.30.0020.00517.59
8.1.20.0040.00417.52
8.1.10.0080.00017.42
8.1.00.0040.00417.39
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0000.00718.31
8.0.270.0070.00017.25
8.0.260.0030.00316.90
8.0.250.0050.00216.89
8.0.240.0000.00817.02
8.0.230.0040.00416.93
8.0.220.0000.00716.82
8.0.210.0040.00416.99
8.0.200.0000.00716.98
8.0.190.0000.00716.92
8.0.180.0000.00816.81
8.0.170.0060.00316.96
8.0.160.0030.00517.02
8.0.150.0040.00416.82
8.0.140.0030.00416.98
8.0.130.0050.00013.29
8.0.120.0040.00416.88
8.0.110.0050.00316.84
8.0.100.0040.00416.93
8.0.90.0000.00817.00
8.0.80.0060.01016.88
8.0.70.0040.00416.77
8.0.60.0000.00716.78
8.0.50.0070.00017.04
8.0.30.0110.00816.83
8.0.20.0070.01617.40
8.0.10.0080.00316.98
8.0.00.0100.00916.72
7.4.330.0000.00715.00
7.4.320.0000.00616.44
7.4.300.0060.00016.48
7.4.290.0000.00716.35
7.4.280.0060.00016.43
7.4.270.0030.00616.54
7.4.260.0070.00016.43
7.4.250.0080.00016.26
7.4.240.0020.00616.50
7.4.230.0000.00716.52
7.4.220.0060.01216.48
7.4.210.0070.00816.45
7.4.200.0050.00216.56
7.4.190.0040.00416.63
7.4.160.0080.00816.33
7.4.150.0100.00717.40
7.4.140.0120.00817.86
7.4.130.0100.00716.42
7.4.120.0090.00916.54
7.4.110.0030.01316.54
7.4.100.0150.00516.44
7.4.90.0080.00816.36
7.4.80.0200.00319.39
7.4.70.0100.01016.38
7.4.60.0040.01316.40
7.4.50.0000.00816.52
7.4.40.0060.00922.77
7.4.30.0150.00616.65
7.4.00.0110.00714.91
7.3.330.0000.00613.17
7.3.320.0040.00412.97
7.3.310.0000.00716.33
7.3.300.0070.00016.18
7.3.290.0110.00416.38
7.3.280.0080.00616.27
7.3.270.0130.00317.40
7.3.260.0090.01116.46
7.3.250.0100.01016.40
7.3.240.0130.00316.36
7.3.230.0060.01216.39
7.3.210.0130.00316.32
7.3.200.0050.01319.39
7.3.190.0140.00316.27
7.3.180.0100.00616.22
7.3.170.0040.01216.45
7.3.160.0090.00916.52
7.3.120.0060.01014.86
7.3.00.0090.00316.58
7.2.330.0040.01516.54
7.2.320.0160.00616.63
7.2.310.0070.01016.71
7.2.300.0150.00616.63
7.2.290.0060.00916.33
7.2.130.0120.00316.79
7.2.120.0060.00316.78
7.2.110.0110.00416.98
7.2.100.0090.00616.73
7.2.90.0070.00716.81
7.2.80.0040.01116.95
7.2.70.0100.00717.09
7.2.60.0040.00716.73
7.2.50.0140.00316.96
7.2.40.0000.01216.98
7.2.30.0090.00616.82
7.2.20.0120.00616.87
7.2.10.0130.00316.96
7.2.00.0040.01018.07
7.1.250.0030.00915.33
7.1.240.0060.00615.73
7.1.230.0140.00015.83
7.1.220.0040.00815.82
7.1.210.0090.00315.76
7.1.200.0020.00815.77
7.1.190.0030.00915.81
7.1.180.0030.01215.71
7.1.170.0040.00815.77
7.1.160.0070.00715.73
7.1.150.0030.00915.82
7.1.140.0070.00315.67
7.1.130.0130.00315.61
7.1.120.0070.00715.58
7.1.110.0070.00715.79
7.1.100.0090.00316.85
7.1.90.0030.00615.78
7.1.80.0200.00015.66
7.1.70.0060.00516.35
7.1.60.0050.01517.58
7.1.50.0080.00716.39
7.1.40.0080.00815.64
7.1.30.0070.00715.69
7.1.20.0080.00315.70
7.1.10.0030.00715.46
7.1.00.0080.03518.94
7.0.330.0000.01415.14
7.0.320.0000.01515.33
7.0.310.0120.00315.29
7.0.300.0110.00415.51
7.0.290.0070.00715.25
7.0.280.0070.01015.26
7.0.270.0100.00314.94
7.0.260.0080.00415.49
7.0.250.0040.01115.47
7.0.240.0090.00315.30
7.0.230.0070.01015.25
7.0.220.0100.00315.39
7.0.210.0050.00515.43
7.0.200.0010.00816.10
7.0.190.0080.00815.23
7.0.180.0070.00415.50
7.0.170.0100.00015.24
7.0.160.0110.00015.39
7.0.150.0090.00615.50
7.0.140.0040.04218.70
7.0.130.0070.01015.47
7.0.120.0030.01015.29
7.0.110.0030.00915.42
7.0.100.0230.02617.61
7.0.90.0260.04517.60
7.0.80.0080.02317.57
7.0.70.0050.02817.80
7.0.60.0070.02317.43
7.0.50.0060.02317.86
7.0.40.0050.03216.63
7.0.30.0100.04116.75
7.0.20.0100.02816.59
7.0.10.0030.03216.75
7.0.00.0090.03716.81
5.6.380.0000.01214.16
5.6.370.0060.00914.28
5.6.360.0000.01514.62
5.6.350.0060.01014.60
5.6.340.0040.01114.35
5.6.330.0030.00614.09
5.6.320.0080.00414.45
5.6.310.0030.01013.95
5.6.300.0040.01214.54
5.6.290.0030.01314.21
5.6.280.0120.03017.55
5.6.270.0040.00814.28
5.6.260.0060.00314.20
5.6.250.0080.04117.47
5.6.240.0120.04517.35
5.6.230.0100.04117.62
5.6.220.0050.03117.49
5.6.210.0070.02317.44
5.6.200.0070.02717.56
5.6.190.0110.04417.71
5.6.180.0030.04417.67
5.6.170.0080.04117.62
5.6.160.0060.03017.75
5.6.150.0070.03517.78
5.6.140.0100.03517.70
5.6.130.0030.04617.57
5.6.120.0100.03317.62
5.6.110.0050.04017.69
5.6.100.0050.02617.62
5.6.90.0070.03717.61
5.6.80.0050.02317.22
5.6.70.0030.04817.23
5.6.60.0020.03317.31
5.6.50.0040.02917.10
5.6.40.0110.04117.47
5.6.30.0090.03217.30
5.6.20.0050.02917.26
5.6.10.0120.02317.33
5.6.00.0070.03517.18
5.5.380.0070.04715.87
5.5.370.0100.03515.72
5.5.360.0030.04515.69
5.5.350.0070.02215.68
5.5.340.0030.04215.99
5.5.330.0070.02316.02
5.5.320.0110.03015.95
5.5.310.0020.04916.01
5.5.300.0030.04615.89
5.5.290.0020.02715.97
5.5.280.0010.03315.91
5.5.270.0080.03215.96
5.5.260.0060.03915.87
5.5.250.0100.04015.84
5.5.240.0030.02915.70
5.5.230.0070.02715.59
5.5.220.0080.02015.74
5.5.210.0100.03015.51
5.5.200.0090.03015.64
5.5.190.0030.02715.62
5.5.180.0070.03915.62
5.5.170.0040.00711.07
5.5.160.0030.02715.62
5.5.150.0030.04615.67
5.5.140.0060.02615.59
5.5.130.0090.02215.62
5.5.120.0150.03015.64
5.5.110.0030.03215.60
5.5.100.0080.03315.55
5.5.90.0080.02815.58
5.5.80.0080.02315.58
5.5.70.0120.03815.53
5.5.60.0060.03415.60
5.5.50.0030.03115.52
5.5.40.0100.02715.58
5.5.30.0080.03315.54
5.5.20.0060.01715.58
5.5.10.0030.03715.52
5.5.00.0040.02215.54
5.4.450.0020.04315.19
5.4.440.0010.03015.07
5.4.430.0050.04115.07
5.4.420.0100.02515.19
5.4.410.0050.02815.28
5.4.400.0080.04015.05
5.4.390.0070.02215.03
5.4.380.0100.03515.03
5.4.370.0080.03715.01
5.4.360.0050.02515.03
5.4.350.0050.03914.97
5.4.340.0060.04015.10
5.4.330.0000.01011.04
5.4.320.0080.03315.07
5.4.310.0070.03215.11
5.4.300.0070.03014.99
5.4.290.0110.03015.07
5.4.280.0070.03214.88
5.4.270.0030.04014.99
5.4.260.0030.02414.95
5.4.250.0060.02615.04
5.4.240.0060.03415.01
5.4.230.0030.04215.03
5.4.220.0070.04214.99
5.4.210.0080.02015.04
5.4.200.0070.03814.95
5.4.190.0030.04215.03
5.4.180.0070.02615.04
5.4.170.0070.03215.06
5.4.160.0020.02515.04
5.4.150.0100.03415.05
5.4.140.0060.02113.61
5.4.130.0000.03013.71
5.4.120.0050.02413.66
5.4.110.0130.02813.70
5.4.100.0060.02013.67
5.4.90.0050.03013.61
5.4.80.0050.02013.70
5.4.70.0040.02213.65
5.4.60.0070.03813.64
5.4.50.0050.02813.64
5.4.40.0090.02113.63
5.4.30.0030.02313.59
5.4.20.0020.02513.70
5.4.10.0030.02213.70
5.4.00.0040.02413.38
5.3.290.0080.03112.82
5.3.280.0020.04112.75
5.3.270.0000.02512.73
5.3.260.0060.02312.72
5.3.250.0030.02512.73
5.3.240.0050.02112.80
5.3.230.0100.01712.73
5.3.220.0070.04212.78
5.3.210.0040.02312.77
5.3.200.0080.03812.76
5.3.190.0040.03912.72
5.3.180.0020.02612.78
5.3.170.0080.02012.78
5.3.160.0080.03312.69
5.3.150.0100.03212.79
5.3.140.0120.04712.77
5.3.130.0030.04412.73
5.3.120.0030.02412.76
5.3.110.0060.03512.71
5.3.100.0030.03212.45
5.3.90.0080.02112.49
5.3.80.0060.02312.50
5.3.70.0050.03612.46
5.3.60.0030.02212.43
5.3.50.0080.01812.47
5.3.40.0020.04312.37
5.3.30.0070.02812.46
5.3.20.0050.02012.28
5.3.10.0030.02112.26
5.3.00.0050.02012.30
5.2.170.0070.03310.99
5.2.160.0030.02810.97
5.2.150.0040.01711.00
5.2.140.0080.01711.05
5.2.130.0060.01511.07
5.2.120.0030.01911.02
5.2.110.0030.01711.05
5.2.100.0020.02811.04
5.2.90.0010.02111.09
5.2.80.0050.01710.98
5.2.70.0020.01711.06
5.2.60.0080.01811.01
5.2.50.0020.03311.00
5.2.40.0030.03010.98
5.2.30.0070.02510.98
5.2.20.0030.01810.98
5.2.10.0030.01510.93
5.2.00.0030.03010.88
5.1.60.0030.02510.54
5.1.50.0030.01510.53
5.1.40.0060.01010.52
5.1.30.0000.02210.67
5.1.20.0060.02710.69
5.1.10.0050.02810.56
5.1.00.0000.03110.52
5.0.50.0020.02310.52
5.0.40.0030.00910.52
5.0.30.0050.01310.52
5.0.20.0070.01410.52
5.0.10.0040.01710.52
5.0.00.0030.03310.52
4.4.90.0020.01010.52
4.4.80.0000.01010.52
4.4.70.0000.01810.52
4.4.60.0000.01410.52
4.4.50.0020.01910.52
4.4.40.0010.02610.52
4.4.30.0000.01710.52
4.4.20.0000.02110.52
4.4.10.0030.01910.52
4.4.00.0020.02410.52
4.3.110.0030.01310.52
4.3.100.0070.01510.52
4.3.90.0020.00810.52
4.3.80.0000.01410.52
4.3.70.0030.00710.52
4.3.60.0070.00710.52
4.3.50.0000.01110.52
4.3.40.0020.01310.52
4.3.30.0000.01710.52
4.3.20.0030.01810.52
4.3.10.0020.01010.52
4.3.00.0050.01510.52

preferences:
43.17 ms | 401 KiB | 5 Q