3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(-10 ** 2.5); $a = range(-0, 10); $b = range(-10, 10, 0.5); $opResults = []; $funcResults = []; foreach($a as $_a) { foreach($b as $_b) { $opResults[] = $a ** $b; $funcResults[] = pow($a, $b); } } var_dump($opResults === $funcResults, $opResults, $funcResults);
based on Vr8JH
Output for 5.6.8 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
float(-316.22776601684) bool(true) array(451) { [0]=> int(0) [1]=> int(0) [2]=> int(0) [3]=> int(0) [4]=> int(0) [5]=> int(0) [6]=> int(0) [7]=> int(0) [8]=> int(0) [9]=> int(0) [10]=> int(0) [11]=> int(0) [12]=> int(0) [13]=> int(0) [14]=> int(0) [15]=> int(0) [16]=> int(0) [17]=> int(0) [18]=> int(0) [19]=> int(0) [20]=> int(0) [21]=> int(0) [22]=> int(0) [23]=> int(0) [24]=> int(0) [25]=> int(0) [26]=> int(0) [27]=> int(0) [28]=> int(0) [29]=> int(0) [30]=> int(0) [31]=> int(0) [32]=> int(0) [33]=> int(0) [34]=> int(0) [35]=> int(0) [36]=> int(0) [37]=> int(0) [38]=> int(0) [39]=> int(0) [40]=> int(0) [41]=> int(0) [42]=> int(0) [43]=> int(0) [44]=> int(0) [45]=> int(0) [46]=> int(0) [47]=> int(0) [48]=> int(0) [49]=> int(0) [50]=> int(0) [51]=> int(0) [52]=> int(0) [53]=> int(0) [54]=> int(0) [55]=> int(0) [56]=> int(0) [57]=> int(0) [58]=> int(0) [59]=> int(0) [60]=> int(0) [61]=> int(0) [62]=> int(0) [63]=> int(0) [64]=> int(0) [65]=> int(0) [66]=> int(0) [67]=> int(0) [68]=> int(0) [69]=> int(0) [70]=> int(0) [71]=> int(0) [72]=> int(0) [73]=> int(0) [74]=> int(0) [75]=> int(0) [76]=> int(0) [77]=> int(0) [78]=> int(0) [79]=> int(0) [80]=> int(0) [81]=> int(0) [82]=> int(0) [83]=> int(0) [84]=> int(0) [85]=> int(0) [86]=> int(0) [87]=> int(0) [88]=> int(0) [89]=> int(0) [90]=> int(0) [91]=> int(0) [92]=> int(0) [93]=> int(0) [94]=> int(0) [95]=> int(0) [96]=> int(0) [97]=> int(0) [98]=> int(0) [99]=> int(0) [100]=> int(0) [101]=> int(0) [102]=> int(0) [103]=> int(0) [104]=> int(0) [105]=> int(0) [106]=> int(0) [107]=> int(0) [108]=> int(0) [109]=> int(0) [110]=> int(0) [111]=> int(0) [112]=> int(0) [113]=> int(0) [114]=> int(0) [115]=> int(0) [116]=> int(0) [117]=> int(0) [118]=> int(0) [119]=> int(0) [120]=> int(0) [121]=> int(0) [122]=> int(0) [123]=> int(0) [124]=> int(0) [125]=> int(0) [126]=> int(0) [127]=> int(0) [128]=> int(0) [129]=> int(0) [130]=> int(0) [131]=> int(0) [132]=> int(0) [133]=> int(0) [134]=> int(0) [135]=> int(0) [136]=> int(0) [137]=> int(0) [138]=> int(0) [139]=> int(0) [140]=> int(0) [141]=> int(0) [142]=> int(0) [143]=> int(0) [144]=> int(0) [145]=> int(0) [146]=> int(0) [147]=> int(0) [148]=> int(0) [149]=> int(0) [150]=> int(0) [151]=> int(0) [152]=> int(0) [153]=> int(0) [154]=> int(0) [155]=> int(0) [156]=> int(0) [157]=> int(0) [158]=> int(0) [159]=> int(0) [160]=> int(0) [161]=> int(0) [162]=> int(0) [163]=> int(0) [164]=> int(0) [165]=> int(0) [166]=> int(0) [167]=> int(0) [168]=> int(0) [169]=> int(0) [170]=> int(0) [171]=> int(0) [172]=> int(0) [173]=> int(0) [174]=> int(0) [175]=> int(0) [176]=> int(0) [177]=> int(0) [178]=> int(0) [179]=> int(0) [180]=> int(0) [181]=> int(0) [182]=> int(0) [183]=> int(0) [184]=> int(0) [185]=> int(0) [186]=> int(0) [187]=> int(0) [188]=> int(0) [189]=> int(0) [190]=> int(0) [191]=> int(0) [192]=> int(0) [193]=> int(0) [194]=> int(0) [195]=> int(0) [196]=> int(0) [197]=> int(0) [198]=> int(0) [199]=> int(0) [200]=> int(0) [201]=> int(0) [202]=> int(0) [203]=> int(0) [204]=> int(0) [205]=> int(0) [206]=> int(0) [207]=> int(0) [208]=> int(0) [209]=> int(0) [210]=> int(0) [211]=> int(0) [212]=> int(0) [213]=> int(0) [214]=> int(0) [215]=> int(0) [216]=> int(0) [217]=> int(0) [218]=> int(0) [219]=> int(0) [220]=> int(0) [221]=> int(0) [222]=> int(0) [223]=> int(0) [224]=> int(0) [225]=> int(0) [226]=> int(0) [227]=> int(0) [228]=> int(0) [229]=> int(0) [230]=> int(0) [231]=> int(0) [232]=> int(0) [233]=> int(0) [234]=> int(0) [235]=> int(0) [236]=> int(0) [237]=> int(0) [238]=> int(0) [239]=> int(0) [240]=> int(0) [241]=> int(0) [242]=> int(0) [243]=> int(0) [244]=> int(0) [245]=> int(0) [246]=> int(0) [247]=> int(0) [248]=> int(0) [249]=> int(0) [250]=> int(0) [251]=> int(0) [252]=> int(0) [253]=> int(0) [254]=> int(0) [255]=> int(0) [256]=> int(0) [257]=> int(0) [258]=> int(0) [259]=> int(0) [260]=> int(0) [261]=> int(0) [262]=> int(0) [263]=> int(0) [264]=> int(0) [265]=> int(0) [266]=> int(0) [267]=> int(0) [268]=> int(0) [269]=> int(0) [270]=> int(0) [271]=> int(0) [272]=> int(0) [273]=> int(0) [274]=> int(0) [275]=> int(0) [276]=> int(0) [277]=> int(0) [278]=> int(0) [279]=> int(0) [280]=> int(0) [281]=> int(0) [282]=> int(0) [283]=> int(0) [284]=> int(0) [285]=> int(0) [286]=> int(0) [287]=> int(0) [288]=> int(0) [289]=> int(0) [290]=> int(0) [291]=> int(0) [292]=> int(0) [293]=> int(0) [294]=> int(0) [295]=> int(0) [296]=> int(0) [297]=> int(0) [298]=> int(0) [299]=> int(0) [300]=> int(0) [301]=> int(0) [302]=> int(0) [303]=> int(0) [304]=> int(0) [305]=> int(0) [306]=> int(0) [307]=> int(0) [308]=> int(0) [309]=> int(0) [310]=> int(0) [311]=> int(0) [312]=> int(0) [313]=> int(0) [314]=> int(0) [315]=> int(0) [316]=> int(0) [317]=> int(0) [318]=> int(0) [319]=> int(0) [320]=> int(0) [321]=> int(0) [322]=> int(0) [323]=> int(0) [324]=> int(0) [325]=> int(0) [326]=> int(0) [327]=> int(0) [328]=> int(0) [329]=> int(0) [330]=> int(0) [331]=> int(0) [332]=> int(0) [333]=> int(0) [334]=> int(0) [335]=> int(0) [336]=> int(0) [337]=> int(0) [338]=> int(0) [339]=> int(0) [340]=> int(0) [341]=> int(0) [342]=> int(0) [343]=> int(0) [344]=> int(0) [345]=> int(0) [346]=> int(0) [347]=> int(0) [348]=> int(0) [349]=> int(0) [350]=> int(0) [351]=> int(0) [352]=> int(0) [353]=> int(0) [354]=> int(0) [355]=> int(0) [356]=> int(0) [357]=> int(0) [358]=> int(0) [359]=> int(0) [360]=> int(0) [361]=> int(0) [362]=> int(0) [363]=> int(0) [364]=> int(0) [365]=> int(0) [366]=> int(0) [367]=> int(0) [368]=> int(0) [369]=> int(0) [370]=> int(0) [371]=> int(0) [372]=> int(0) [373]=> int(0) [374]=> int(0) [375]=> int(0) [376]=> int(0) [377]=> int(0) [378]=> int(0) [379]=> int(0) [380]=> int(0) [381]=> int(0) [382]=> int(0) [383]=> int(0) [384]=> int(0) [385]=> int(0) [386]=> int(0) [387]=> int(0) [388]=> int(0) [389]=> int(0) [390]=> int(0) [391]=> int(0) [392]=> int(0) [393]=> int(0) [394]=> int(0) [395]=> int(0) [396]=> int(0) [397]=> int(0) [398]=> int(0) [399]=> int(0) [400]=> int(0) [401]=> int(0) [402]=> int(0) [403]=> int(0) [404]=> int(0) [405]=> int(0) [406]=> int(0) [407]=> int(0) [408]=> int(0) [409]=> int(0) [410]=> int(0) [411]=> int(0) [412]=> int(0) [413]=> int(0) [414]=> int(0) [415]=> int(0) [416]=> int(0) [417]=> int(0) [418]=> int(0) [419]=> int(0) [420]=> int(0) [421]=> int(0) [422]=> int(0) [423]=> int(0) [424]=> int(0) [425]=> int(0) [426]=> int(0) [427]=> int(0) [428]=> int(0) [429]=> int(0) [430]=> int(0) [431]=> int(0) [432]=> int(0) [433]=> int(0) [434]=> int(0) [435]=> int(0) [436]=> int(0) [437]=> int(0) [438]=> int(0) [439]=> int(0) [440]=> int(0) [441]=> int(0) [442]=> int(0) [443]=> int(0) [444]=> int(0) [445]=> int(0) [446]=> int(0) [447]=> int(0) [448]=> int(0) [449]=> int(0) [450]=> int(0) } array(451) { [0]=> int(0) [1]=> int(0) [2]=> int(0) [3]=> int(0) [4]=> int(0) [5]=> int(0) [6]=> int(0) [7]=> int(0) [8]=> int(0) [9]=> int(0) [10]=> int(0) [11]=> int(0) [12]=> int(0) [13]=> int(0) [14]=> int(0) [15]=> int(0) [16]=> int(0) [17]=> int(0) [18]=> int(0) [19]=> int(0) [20]=> int(0) [21]=> int(0) [22]=> int(0) [23]=> int(0) [24]=> int(0) [25]=> int(0) [26]=> int(0) [27]=> int(0) [28]=> int(0) [29]=> int(0) [30]=> int(0) [31]=> int(0) [32]=> int(0) [33]=> int(0) [34]=> int(0) [35]=> int(0) [36]=> int(0) [37]=> int(0) [38]=> int(0) [39]=> int(0) [40]=> int(0) [41]=> int(0) [42]=> int(0) [43]=> int(0) [44]=> int(0) [45]=> int(0) [46]=> int(0) [47]=> int(0) [48]=> int(0) [49]=> int(0) [50]=> int(0) [51]=> int(0) [52]=> int(0) [53]=> int(0) [54]=> int(0) [55]=> int(0) [56]=> int(0) [57]=> int(0) [58]=> int(0) [59]=> int(0) [60]=> int(0) [61]=> int(0) [62]=> int(0) [63]=> int(0) [64]=> int(0) [65]=> int(0) [66]=> int(0) [67]=> int(0) [68]=> int(0) [69]=> int(0) [70]=> int(0) [71]=> int(0) [72]=> int(0) [73]=> int(0) [74]=> int(0) [75]=> int(0) [76]=> int(0) [77]=> int(0) [78]=> int(0) [79]=> int(0) [80]=> int(0) [81]=> int(0) [82]=> int(0) [83]=> int(0) [84]=> int(0) [85]=> int(0) [86]=> int(0) [87]=> int(0) [88]=> int(0) [89]=> int(0) [90]=> int(0) [91]=> int(0) [92]=> int(0) [93]=> int(0) [94]=> int(0) [95]=> int(0) [96]=> int(0) [97]=> int(0) [98]=> int(0) [99]=> int(0) [100]=> int(0) [101]=> int(0) [102]=> int(0) [103]=> int(0) [104]=> int(0) [105]=> int(0) [106]=> int(0) [107]=> int(0) [108]=> int(0) [109]=> int(0) [110]=> int(0) [111]=> int(0) [112]=> int(0) [113]=> int(0) [114]=> int(0) [115]=> int(0) [116]=> int(0) [117]=> int(0) [118]=> int(0) [119]=> int(0) [120]=> int(0) [121]=> int(0) [122]=> int(0) [123]=> int(0) [124]=> int(0) [125]=> int(0) [126]=> int(0) [127]=> int(0) [128]=> int(0) [129]=> int(0) [130]=> int(0) [131]=> int(0) [132]=> int(0) [133]=> int(0) [134]=> int(0) [135]=> int(0) [136]=> int(0) [137]=> int(0) [138]=> int(0) [139]=> int(0) [140]=> int(0) [141]=> int(0) [142]=> int(0) [143]=> int(0) [144]=> int(0) [145]=> int(0) [146]=> int(0) [147]=> int(0) [148]=> int(0) [149]=> int(0) [150]=> int(0) [151]=> int(0) [152]=> int(0) [153]=> int(0) [154]=> int(0) [155]=> int(0) [156]=> int(0) [157]=> int(0) [158]=> int(0) [159]=> int(0) [160]=> int(0) [161]=> int(0) [162]=> int(0) [163]=> int(0) [164]=> int(0) [165]=> int(0) [166]=> int(0) [167]=> int(0) [168]=> int(0) [169]=> int(0) [170]=> int(0) [171]=> int(0) [172]=> int(0) [173]=> int(0) [174]=> int(0) [175]=> int(0) [176]=> int(0) [177]=> int(0) [178]=> int(0) [179]=> int(0) [180]=> int(0) [181]=> int(0) [182]=> int(0) [183]=> int(0) [184]=> int(0) [185]=> int(0) [186]=> int(0) [187]=> int(0) [188]=> int(0) [189]=> int(0) [190]=> int(0) [191]=> int(0) [192]=> int(0) [193]=> int(0) [194]=> int(0) [195]=> int(0) [196]=> int(0) [197]=> int(0) [198]=> int(0) [199]=> int(0) [200]=> int(0) [201]=> int(0) [202]=> int(0) [203]=> int(0) [204]=> int(0) [205]=> int(0) [206]=> int(0) [207]=> int(0) [208]=> int(0) [209]=> int(0) [210]=> int(0) [211]=> int(0) [212]=> int(0) [213]=> int(0) [214]=> int(0) [215]=> int(0) [216]=> int(0) [217]=> int(0) [218]=> int(0) [219]=> int(0) [220]=> int(0) [221]=> int(0) [222]=> int(0) [223]=> int(0) [224]=> int(0) [225]=> int(0) [226]=> int(0) [227]=> int(0) [228]=> int(0) [229]=> int(0) [230]=> int(0) [231]=> int(0) [232]=> int(0) [233]=> int(0) [234]=> int(0) [235]=> int(0) [236]=> int(0) [237]=> int(0) [238]=> int(0) [239]=> int(0) [240]=> int(0) [241]=> int(0) [242]=> int(0) [243]=> int(0) [244]=> int(0) [245]=> int(0) [246]=> int(0) [247]=> int(0) [248]=> int(0) [249]=> int(0) [250]=> int(0) [251]=> int(0) [252]=> int(0) [253]=> int(0) [254]=> int(0) [255]=> int(0) [256]=> int(0) [257]=> int(0) [258]=> int(0) [259]=> int(0) [260]=> int(0) [261]=> int(0) [262]=> int(0) [263]=> int(0) [264]=> int(0) [265]=> int(0) [266]=> int(0) [267]=> int(0) [268]=> int(0) [269]=> int(0) [270]=> int(0) [271]=> int(0) [272]=> int(0) [273]=> int(0) [274]=> int(0) [275]=> int(0) [276]=> int(0) [277]=> int(0) [278]=> int(0) [279]=> int(0) [280]=> int(0) [281]=> int(0) [282]=> int(0) [283]=> int(0) [284]=> int(0) [285]=> int(0) [286]=> int(0) [287]=> int(0) [288]=> int(0) [289]=> int(0) [290]=> int(0) [291]=> int(0) [292]=> int(0) [293]=> int(0) [294]=> int(0) [295]=> int(0) [296]=> int(0) [297]=> int(0) [298]=> int(0) [299]=> int(0) [300]=> int(0) [301]=> int(0) [302]=> int(0) [303]=> int(0) [304]=> int(0) [305]=> int(0) [306]=> int(0) [307]=> int(0) [308]=> int(0) [309]=> int(0) [310]=> int(0) [311]=> int(0) [312]=> int(0) [313]=> int(0) [314]=> int(0) [315]=> int(0) [316]=> int(0) [317]=> int(0) [318]=> int(0) [319]=> int(0) [320]=> int(0) [321]=> int(0) [322]=> int(0) [323]=> int(0) [324]=> int(0) [325]=> int(0) [326]=> int(0) [327]=> int(0) [328]=> int(0) [329]=> int(0) [330]=> int(0) [331]=> int(0) [332]=> int(0) [333]=> int(0) [334]=> int(0) [335]=> int(0) [336]=> int(0) [337]=> int(0) [338]=> int(0) [339]=> int(0) [340]=> int(0) [341]=> int(0) [342]=> int(0) [343]=> int(0) [344]=> int(0) [345]=> int(0) [346]=> int(0) [347]=> int(0) [348]=> int(0) [349]=> int(0) [350]=> int(0) [351]=> int(0) [352]=> int(0) [353]=> int(0) [354]=> int(0) [355]=> int(0) [356]=> int(0) [357]=> int(0) [358]=> int(0) [359]=> int(0) [360]=> int(0) [361]=> int(0) [362]=> int(0) [363]=> int(0) [364]=> int(0) [365]=> int(0) [366]=> int(0) [367]=> int(0) [368]=> int(0) [369]=> int(0) [370]=> int(0) [371]=> int(0) [372]=> int(0) [373]=> int(0) [374]=> int(0) [375]=> int(0) [376]=> int(0) [377]=> int(0) [378]=> int(0) [379]=> int(0) [380]=> int(0) [381]=> int(0) [382]=> int(0) [383]=> int(0) [384]=> int(0) [385]=> int(0) [386]=> int(0) [387]=> int(0) [388]=> int(0) [389]=> int(0) [390]=> int(0) [391]=> int(0) [392]=> int(0) [393]=> int(0) [394]=> int(0) [395]=> int(0) [396]=> int(0) [397]=> int(0) [398]=> int(0) [399]=> int(0) [400]=> int(0) [401]=> int(0) [402]=> int(0) [403]=> int(0) [404]=> int(0) [405]=> int(0) [406]=> int(0) [407]=> int(0) [408]=> int(0) [409]=> int(0) [410]=> int(0) [411]=> int(0) [412]=> int(0) [413]=> int(0) [414]=> int(0) [415]=> int(0) [416]=> int(0) [417]=> int(0) [418]=> int(0) [419]=> int(0) [420]=> int(0) [421]=> int(0) [422]=> int(0) [423]=> int(0) [424]=> int(0) [425]=> int(0) [426]=> int(0) [427]=> int(0) [428]=> int(0) [429]=> int(0) [430]=> int(0) [431]=> int(0) [432]=> int(0) [433]=> int(0) [434]=> int(0) [435]=> int(0) [436]=> int(0) [437]=> int(0) [438]=> int(0) [439]=> int(0) [440]=> int(0) [441]=> int(0) [442]=> int(0) [443]=> int(0) [444]=> int(0) [445]=> int(0) [446]=> int(0) [447]=> int(0) [448]=> int(0) [449]=> int(0) [450]=> int(0) }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.5.35
Parse error: syntax error, unexpected '*' in /in/8u3Ll on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '*' in /in/8u3Ll on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/8u3Ll on line 3
Process exited with code 255.