3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prices = ['0.0001','0.0000995','0.0000996','0.000099']; $price = $prices[array_rand($prices)]; $arr = array('price'=>$price); print_r($arr);

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.0070.01114.70
7.4.00.0100.00714.77
7.3.130.0030.01414.71
7.3.120.0030.01314.59
7.3.110.0090.00914.72
7.3.100.0030.01214.66
7.3.90.0150.00314.71
7.3.80.0040.01114.27
7.3.70.0070.00714.86
7.3.60.0030.01414.80
7.3.50.0030.01014.81
7.3.40.0000.00814.83
7.3.30.0070.00714.70
7.3.20.0080.00816.55
7.3.10.0060.00516.63
7.3.00.0100.00416.58
7.2.260.0060.01215.28
7.2.250.0180.00014.82
7.2.240.0070.00614.95
7.2.230.0090.00615.09
7.2.220.0030.00914.83
7.2.210.0070.00415.12
7.2.200.0070.01014.61
7.2.190.0000.01415.00
7.2.180.0110.00414.98
7.2.170.0040.01114.99
7.2.160.0090.00915.09
7.2.150.0030.01016.93
7.2.140.0100.00716.61
7.2.130.0080.00616.65
7.2.120.0040.00916.59
7.2.110.0040.00616.87
7.2.100.0070.00516.91
7.2.90.0090.00616.80
7.2.80.0000.01516.82
7.2.70.0080.00816.66
7.2.60.0070.01016.72
7.2.50.0080.00716.94
7.2.40.0090.00316.76
7.2.30.0020.01116.79
7.2.20.0080.00816.88
7.2.10.0030.01216.66
7.2.00.0090.00517.61
7.1.330.0070.00715.66
7.1.320.0100.00715.89
7.1.310.0070.00715.72
7.1.300.0000.01415.59
7.1.290.0060.00615.77
7.1.280.0100.00315.69
7.1.270.0090.00315.54
7.1.260.0040.00415.75
7.1.250.0030.01215.70
7.1.240.0080.00415.70
7.1.230.0110.00415.78
7.1.220.0030.01015.77
7.1.210.0070.00715.91
7.1.200.0050.00415.75
7.1.190.0100.00415.76
7.1.180.0060.00715.66
7.1.170.0020.00815.71
7.1.160.0060.00915.69
7.1.150.0050.00715.65
7.1.140.0000.01015.85
7.1.130.0090.00515.71
7.1.120.0020.01015.73
7.1.110.0050.00815.80
7.1.100.0060.00815.79
7.1.90.0020.01115.58
7.1.80.0070.00515.93
7.1.70.0030.00916.12
7.1.60.0060.00717.09
7.1.50.0030.01616.11
7.1.40.0030.01215.72
7.1.30.0030.00915.70
7.1.20.0070.00815.53
7.1.10.0020.01015.87
7.1.00.0080.02917.99
7.0.330.0070.00915.39
7.0.320.0050.00715.38
7.0.310.0040.00715.48
7.0.300.0040.00915.31
7.0.290.0030.01115.27
7.0.280.0080.00815.41
7.0.270.0030.00815.28
7.0.260.0030.01215.25
7.0.250.0030.01015.46
7.0.240.0010.00815.30
7.0.230.0060.01115.36
7.0.220.0050.00615.14
7.0.210.0020.00815.28
7.0.200.0040.00815.84
7.0.190.0090.00415.26
7.0.180.0060.00615.39
7.0.170.0040.00715.41
7.0.160.0050.00815.40
7.0.150.0050.01015.23
7.0.140.0030.03117.57
7.0.130.0070.00715.33
7.0.120.0100.00715.44
7.0.110.0050.00515.42
7.0.100.0050.00915.43
7.0.90.0070.00715.25
7.0.80.0060.00615.28
7.0.70.0080.00315.36
7.0.60.0070.02416.88
7.0.50.0060.02416.22
7.0.40.0080.03115.63
7.0.30.0120.02215.58
7.0.20.0160.02015.60
7.0.10.0050.03015.58
7.0.00.0100.03115.63
5.6.400.0060.00314.51
5.6.390.0120.00314.56
5.6.380.0080.00814.50
5.6.370.0060.00414.46
5.6.360.0090.00314.16
5.6.350.0070.00714.34
5.6.340.0080.00614.07
5.6.330.0090.00514.06
5.6.320.0080.00814.45
5.6.310.0060.00514.51
5.6.300.0050.00914.41
5.6.290.0030.01114.29
5.6.280.0040.03216.61
5.6.270.0100.00614.45
5.6.260.0060.00514.24
5.6.250.0060.00614.15
5.6.240.0080.00514.29
5.6.230.0050.00814.33
5.6.220.0050.00814.06
5.6.210.0100.02916.34
5.6.200.0060.02215.43
5.6.190.0030.02016.42
5.6.180.0110.01716.30
5.6.170.0110.01816.36
5.6.160.0110.02916.29
5.6.150.0090.02915.59
5.6.140.0040.03315.47
5.6.130.0040.03215.56
5.6.120.0100.03016.55
5.6.110.0070.02516.37
5.6.100.0110.03016.62
5.6.90.0060.03016.41
5.6.80.0050.03016.06
5.6.70.0070.00514.17
5.6.60.0040.01014.10
5.6.50.0030.01014.17
5.6.40.0090.00714.10
5.6.30.0120.00314.37
5.6.20.0090.00614.16
5.6.10.0090.00614.13
5.6.00.0070.00714.04
5.5.380.0080.00312.58
5.5.370.0080.00812.62
5.5.360.0080.00312.74
5.5.350.1240.02115.13
5.5.340.0060.02414.40
5.5.330.0110.02615.01
5.5.320.0100.01815.22
5.5.310.0120.02715.13
5.5.300.0030.03014.39
5.5.290.0040.03114.36
5.5.280.0090.02915.42
5.5.270.0080.01715.27
5.5.260.0100.02915.28
5.5.250.0060.01915.20
5.5.240.0150.02815.01
5.5.230.0040.00912.34
5.5.220.0080.00612.44
5.5.210.0030.00612.36
5.5.200.0050.00612.54
5.5.190.0080.00512.49
5.5.180.0080.00612.60
5.5.170.0090.00612.54
5.5.160.0040.00412.56
5.5.150.0040.00812.29
5.5.140.0090.00812.40
5.5.130.0050.00712.45
5.5.120.0050.00612.46
5.5.110.0030.00812.41
5.5.100.0020.00612.63
5.5.90.0000.01012.43
5.5.80.0030.00612.50
5.5.70.0040.00512.36
5.5.60.0070.00412.56
5.5.50.0080.00312.51
5.5.40.0090.00512.38
5.5.30.0050.00812.55
5.5.20.0080.00412.25
5.5.10.0050.00712.40
5.5.00.0060.00612.38
5.4.450.0110.01613.83
5.4.440.0100.02113.79
5.4.430.0100.01713.79
5.4.420.0120.01613.72
5.4.410.0130.01413.71
5.4.400.0120.01613.52
5.4.390.0160.01613.61
5.4.380.0110.02013.54
5.4.370.0100.01713.59
5.4.360.0120.02013.51
5.4.350.0110.01713.43
5.4.340.0160.01613.47
5.4.330.0050.00310.87
5.4.320.0130.01613.52
5.4.310.0120.01713.63
5.4.300.0090.01813.63
5.4.290.0110.01613.47
5.4.280.0110.01613.51
5.4.270.0140.01513.52
5.4.260.0120.01513.60
5.4.250.0090.01613.55
5.4.240.0130.02513.49
5.4.230.0110.01913.59
5.4.220.0090.01913.70
5.4.210.0140.01713.56
5.4.200.0190.02213.52
5.4.190.0150.02213.43
5.4.180.0180.01513.41
5.4.170.0160.02013.56
5.4.160.0210.02313.60
5.4.150.0090.02013.55
5.4.140.0260.01712.56
5.4.130.0120.02612.83
5.4.120.0100.02312.67
5.4.110.0160.01812.62
5.4.100.0120.01912.66
5.4.90.0090.01812.67
5.4.80.0110.01712.67
5.4.70.0100.01712.69
5.4.60.0130.02512.76
5.4.50.0150.01312.52
5.4.40.0130.02112.68
5.4.30.0100.01412.69
5.4.20.0140.01612.45
5.4.10.0170.02312.44
5.4.00.0120.01612.59
5.3.290.0200.01812.79
5.3.280.0180.03212.63
5.3.270.0220.03512.77
5.3.260.0310.02812.75
5.3.250.0180.02012.66
5.3.240.0150.02312.63
5.3.230.0250.03312.69
5.3.220.0130.04312.71
5.3.210.0130.02112.63
5.3.200.0240.03212.63
5.3.190.0170.02812.67
5.3.180.0240.03012.85
5.3.170.0170.02912.85
5.3.160.0170.03912.80
5.3.150.0210.02012.77
5.3.140.0200.02012.74
5.3.130.0200.01712.65
5.3.120.0150.03912.71
5.3.110.0130.03012.83
5.3.100.0180.02812.83
5.3.90.0130.02212.72
5.3.80.0130.02312.71
5.3.70.0150.02212.74
5.3.60.0170.02312.68
5.3.50.0170.01812.79
5.3.40.0170.02312.68
5.3.30.0150.02012.75
5.3.20.0220.03712.70
5.3.10.0150.03012.63
5.3.00.0200.02012.61
5.2.170.0170.03012.37
5.2.160.0130.01912.37
5.2.150.0180.01812.37
5.2.140.0080.02012.37
5.2.130.0120.02512.37
5.2.120.0170.02512.37
5.2.110.0200.02812.37
5.2.100.0140.02012.37
5.2.90.0110.01612.37
5.2.80.0130.02012.37
5.2.70.0180.03012.37
5.2.60.0150.02312.37
5.2.50.0130.01712.37
5.2.40.0120.03012.37
5.2.30.0130.02812.37
5.2.20.0130.01812.37
5.2.10.0120.01812.37
5.2.00.0110.01812.37
5.1.60.0080.01612.37
5.1.50.0130.01212.37
5.1.40.0130.02812.37
5.1.30.0160.01912.37
5.1.20.0200.01712.37
5.1.10.0170.02512.37
5.1.00.0200.02212.37
5.0.50.0120.02212.37
5.0.40.0080.01412.37
5.0.30.0090.02112.37
5.0.20.0120.02012.37
5.0.10.0080.01512.37
5.0.00.0090.03112.37
4.4.90.0110.01512.37
4.4.80.0080.01812.37
4.4.70.0110.01212.37
4.4.60.0090.00712.37
4.4.50.0090.02012.37
4.4.40.0080.02112.37
4.4.30.0080.01012.37
4.4.20.0080.01012.37
4.4.10.0050.01212.37
4.4.00.0080.02312.37
4.3.110.0070.01212.37
4.3.100.0100.01812.37
4.3.90.0060.02012.37
4.3.80.0080.03012.37
4.3.70.0110.01212.37
4.3.60.0060.01812.37
4.3.50.0110.02012.37
4.3.40.0110.01512.37
4.3.30.0050.01912.37
4.3.20.0050.02212.37
4.3.10.0080.01812.37
4.3.00.0030.01912.37

preferences:
100.42 ms | 401 KiB | 5 Q