3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruit = array('apples'=>2, 'oranges'=>5, 'pears'=>0); echo $fruit['oranges']; // echoes 5 $fruit = "new string"; echo $fruit['oranges']; // causes illegal string offset error

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.0110.00716.63
8.3.50.0100.01021.98
8.3.40.0040.01118.89
8.3.30.0170.00318.84
8.3.20.0070.00020.15
8.3.10.0000.00823.65
8.3.00.0040.00419.69
8.2.180.0100.01016.88
8.2.170.0040.01122.96
8.2.160.0120.00418.83
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00320.01
8.2.110.0040.00422.09
8.2.100.0050.00520.52
8.2.90.0030.00619.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0050.00318.22
8.2.30.0040.00418.36
8.2.20.0040.00417.78
8.2.10.0050.00217.95
8.2.00.0000.00817.64
8.1.280.0070.00725.92
8.1.270.0120.00323.72
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.01
8.1.230.0110.00019.10
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0060.00317.00
8.1.190.0080.00317.22
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0030.00521.94
8.1.150.0070.00018.80
8.1.140.0040.00417.38
8.1.130.0030.00317.72
8.1.120.0000.00717.38
8.1.110.0040.00417.27
8.1.100.0040.00417.41
8.1.90.0030.00617.40
8.1.80.0000.00717.43
8.1.70.0070.00017.27
8.1.60.0000.00717.51
8.1.50.0000.00717.40
8.1.40.0030.00517.40
8.1.30.0000.00817.52
8.1.20.0000.00817.57
8.1.10.0000.00717.59
8.1.00.0030.00617.41
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.36
8.0.270.0000.00717.24
8.0.260.0040.00417.24
8.0.250.0000.00617.04
8.0.240.0070.00016.88
8.0.230.0020.00516.94
8.0.220.0000.00716.83
8.0.210.0000.00716.86
8.0.200.0000.00616.83
8.0.190.0090.00016.99
8.0.180.0070.00316.89
8.0.170.0040.00416.91
8.0.160.0000.00716.89
8.0.150.0030.00516.79
8.0.140.0000.00816.85
8.0.130.0000.00513.31
8.0.120.0000.00816.81
8.0.110.0000.00716.86
8.0.100.0030.00516.83
8.0.90.0040.00416.75
8.0.80.0120.00316.84
8.0.70.0000.00716.68
8.0.60.0050.00216.88
8.0.50.0000.00816.90
8.0.30.0100.01217.09
8.0.20.0130.00617.40
8.0.10.0040.00417.04
8.0.00.0120.00516.80
7.4.330.0030.00315.09
7.4.320.0030.00316.57
7.4.300.0030.00316.43
7.4.290.0040.00416.53
7.4.280.0000.00816.49
7.4.270.0000.00716.56
7.4.260.0040.00416.32
7.4.250.0000.00716.40
7.4.240.0020.00516.44
7.4.230.0000.00716.23
7.4.220.0140.00316.55
7.4.210.0110.00316.57
7.4.200.0000.00716.40
7.4.160.0070.01016.36
7.4.150.0130.00617.40
7.4.140.0080.00917.86
7.4.130.0100.00816.34
7.4.120.0080.00816.55
7.4.110.0140.00316.41
7.4.100.0150.00316.38
7.4.90.0130.00316.48
7.4.80.0150.00919.39
7.4.70.0070.01116.64
7.4.60.0100.00616.44
7.4.50.0050.00016.28
7.4.40.0040.01216.46
7.4.30.0100.00716.40
7.4.00.0070.00914.94
7.3.330.0020.00412.98
7.3.320.0050.00012.94
7.3.310.0000.00716.14
7.3.300.0000.00616.23
7.3.290.0130.00616.21
7.3.280.0100.01016.29
7.3.270.0030.01417.40
7.3.260.0080.00916.31
7.3.250.0110.00816.26
7.3.240.0100.00716.39
7.3.230.0100.00616.51
7.3.210.0040.01116.36
7.3.200.0060.01619.39
7.3.190.0100.01316.41
7.3.180.0100.00716.23
7.3.170.0060.00916.27
7.3.160.0130.00316.45
7.3.120.0060.00914.85
7.3.110.0090.00914.78
7.3.100.0100.00714.77
7.3.90.0100.00714.85
7.3.80.0110.00314.85
7.3.70.0110.00414.78
7.3.60.0030.00614.69
7.3.50.0090.00314.86
7.3.40.0000.01114.66
7.3.30.0040.01114.88
7.3.20.0070.01016.57
7.3.10.0060.00816.22
7.3.00.0040.00716.65
7.2.330.0000.01816.50
7.2.320.0150.00416.61
7.2.310.0120.00916.66
7.2.300.0030.01316.36
7.2.290.0030.01316.54
7.2.250.0100.00314.88
7.2.240.0070.01114.85
7.2.230.0070.01014.75
7.2.220.0030.01015.07
7.2.210.0030.00614.93
7.2.200.0060.00614.89
7.2.190.0080.00315.01
7.2.180.0140.00314.94
7.2.170.0030.01415.02
7.2.130.0080.00416.91
7.2.120.0060.00916.67
7.2.110.0050.00616.73
7.2.100.0030.01016.63
7.2.90.0060.00716.82
7.2.80.0070.00517.04
7.2.70.0120.00316.67
7.2.60.0010.01216.85
7.2.50.0030.00816.81
7.2.40.0070.00616.75
7.2.30.0070.00716.73
7.2.20.0070.00916.75
7.2.10.0090.00416.90
7.2.00.0050.01017.68
7.1.330.0040.00915.77
7.1.320.0070.00315.76
7.1.310.0070.00315.78
7.1.300.0040.00815.59
7.1.290.0000.01215.88
7.1.280.0040.00715.66
7.1.270.0040.01115.50
7.1.260.0060.00615.50
7.1.250.0050.00915.58
7.1.240.0060.00615.78
7.1.230.0030.00715.61
7.1.220.0070.00415.50
7.1.210.0050.00315.86
7.1.200.0090.00315.69
7.1.190.0070.00015.83
7.1.180.0060.00615.64
7.1.170.0030.01315.50
7.1.160.0070.00715.75
7.1.150.0120.00315.75
7.1.140.0040.01115.82
7.1.130.0070.00415.80
7.1.120.0120.00015.70
7.1.110.0090.00015.91
7.1.100.0090.00516.79
7.1.90.0040.00815.93
7.1.80.0030.00715.65
7.1.70.0090.00216.36
7.1.60.0080.00817.72
7.1.50.0060.01316.28
7.1.40.0030.00915.84
7.1.30.0060.00615.68
7.1.20.0060.00715.66
7.1.10.0030.00915.57
7.1.00.0020.04618.99
7.0.330.0030.01015.15
7.0.320.0000.01115.14
7.0.310.0030.00715.46
7.0.300.0040.00715.45
7.0.290.0060.00315.05
7.0.280.0040.01115.27
7.0.270.0060.00615.37
7.0.260.0040.01215.37
7.0.250.0100.00315.47
7.0.240.0030.00915.36
7.0.230.0000.01015.30
7.0.220.0100.00315.41
7.0.210.0040.01115.43
7.0.200.0110.00715.19
7.0.190.0000.01215.05
7.0.180.0080.00315.33
7.0.170.0030.01015.32
7.0.160.0030.00915.52
7.0.150.0060.00315.32
7.0.140.0070.03818.51
7.0.130.0030.00615.37
7.0.120.0100.00015.47
7.0.110.0040.01215.30
7.0.100.0140.00015.21
7.0.90.0080.00315.45
7.0.80.0030.00615.23
7.0.70.0000.01015.35
7.0.60.0070.03417.65
7.0.50.0020.04216.58
7.0.40.0020.02916.69
7.0.30.0310.02216.63
7.0.20.0170.03516.78
7.0.10.0100.04616.86
7.0.00.0080.02416.65
5.6.380.0080.00314.45
5.6.370.0090.00314.42
5.6.360.0060.00914.04
5.6.350.0100.00314.31
5.6.340.0090.00314.22
5.6.330.0000.00914.18
5.6.320.0040.00814.07
5.6.310.0060.00614.34
5.6.300.0060.00614.34
5.6.290.0030.01014.11
5.6.280.0060.03717.61
5.6.270.0060.00914.46
5.6.260.0110.00014.34
5.6.250.0060.00914.14
5.6.240.0070.00714.45
5.6.230.0070.00713.95
5.6.220.0080.00514.47
5.6.210.0050.02317.47
5.6.200.0000.02816.18
5.6.190.0060.02317.23
5.6.180.0120.03017.48
5.6.170.0210.04417.45
5.6.160.0120.04017.34
5.6.150.0060.04116.37
5.6.140.0060.02616.25
5.6.130.0050.03516.22
5.6.120.0090.04017.75
5.6.110.0050.04517.57
5.6.100.0100.04217.51
5.6.90.0080.04717.59
5.6.80.0130.03817.34
5.6.70.2300.02317.34
5.6.60.0070.01014.39
5.6.50.0000.01614.32
5.6.40.0000.01414.04
5.6.30.0090.00714.12
5.6.20.0090.00613.96
5.6.10.0080.00814.11
5.6.00.0030.01014.18
5.5.380.0030.00711.17
5.5.370.0090.00011.27
5.5.360.0020.00511.06
5.5.350.0100.04015.83
5.5.340.0050.04414.52
5.5.330.0030.02915.72
5.5.320.1980.02515.73
5.5.310.0180.04415.64
5.5.300.0070.01914.49
5.5.290.0070.02314.65
5.5.280.0080.02815.81
5.5.270.0050.02216.05
5.5.260.0050.02215.98
5.5.250.0070.04215.81
5.5.240.0050.03715.46
5.5.230.0050.00510.65
5.5.220.0030.00911.02
5.5.210.0040.00811.03
5.5.200.0030.00910.98
5.5.190.0040.00710.84
5.5.180.0060.00310.80
5.5.170.0000.00710.93
5.5.160.0080.00311.04
5.5.150.0030.00611.08
5.5.140.0030.00511.17
5.5.130.0000.00810.88
5.5.120.0110.00011.11
5.5.110.0000.00810.97
5.5.100.0070.00710.93
5.5.90.0070.00611.16
5.5.80.0040.00411.10
5.5.70.0030.01011.03
5.5.60.0030.00910.93
5.5.50.0000.01011.04
5.5.40.0070.00010.82
5.5.30.0030.00610.97
5.5.20.0030.00311.02
5.5.10.0030.00610.87
5.5.00.0030.01011.19
5.4.450.0950.02015.12
5.4.440.0880.02015.10
5.4.430.0980.02015.21
5.4.420.1000.01515.21
5.4.410.0900.02114.93
5.4.400.1080.02515.00
5.4.390.1030.02114.94
5.4.380.1000.02214.81
5.4.370.0450.02515.05
5.4.360.0050.02214.95
5.4.350.0070.02214.73
5.4.340.0430.02314.70
5.4.330.0040.00711.04
5.4.320.1070.02815.03
5.4.310.1150.02514.73
5.4.300.1110.01914.89
5.4.290.1000.01914.72
5.4.280.1190.02614.99
5.4.270.1110.02315.07
5.4.260.1110.02315.09
5.4.250.1250.02514.85
5.4.240.1080.02214.86
5.4.230.0980.02214.82
5.4.220.0940.02014.82
5.4.210.0940.02214.84
5.4.200.0950.02014.97
5.4.190.0960.02314.90
5.4.180.1000.02814.99
5.4.170.1050.02815.03
5.4.160.1050.02314.93
5.4.150.0970.02415.00
5.4.140.1070.02313.52
5.4.130.0920.02013.79
5.4.120.1120.02113.69
5.4.110.1100.02313.77
5.4.100.1050.02413.54
5.4.90.1110.01913.60
5.4.80.0990.02613.61
5.4.70.1070.01713.70
5.4.60.0920.02413.64
5.4.50.0930.02013.54
5.4.40.1000.02513.67
5.4.30.0950.01913.70
5.4.20.1050.02213.59
5.4.10.1070.02213.64
5.4.00.1120.02213.32
5.3.290.0980.01812.54
5.3.280.1100.02212.49
5.3.270.0980.02312.45
5.3.260.1060.02612.37
5.3.250.1050.02412.35
5.3.240.1070.02712.44
5.3.230.1060.02012.45
5.3.220.0980.01712.37
5.3.210.0950.02012.40
5.3.200.0950.02212.37
5.3.190.0980.02312.43
5.3.180.1000.02812.39
5.3.170.0980.01812.48
5.3.160.1130.01812.49
5.3.150.1130.02012.34
5.3.140.1000.02012.51
5.3.130.1170.02712.39
5.3.120.1080.01712.36
5.3.110.1100.02912.39
5.3.100.0970.02512.27
5.3.90.0920.02312.31
5.3.80.0980.01812.12
5.3.70.0930.02312.13
5.3.60.0040.00410.35
5.3.50.0000.00810.34
5.3.40.0000.01110.35
5.3.30.0060.00010.25
5.3.20.0050.00310.28
5.3.10.0070.00410.05
5.3.00.0080.00410.09

preferences:
44.22 ms | 401 KiB | 5 Q