3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fo = 0; var_dump($fo *= 5); $a = range(-2, 2); $b = range(-2, 2, 0.5); $opResults = []; $funcResults = []; $results = []; $t = true; foreach($a as $_a) { foreach($b as $_b) { $opResults[] = $_a ** $_b; $funcResults[] = pow($_a, $_b); if( $_a ** $_b !== pow($_a, $_b)) { var_dump(['**' => $_a ** $_b, 'pow()' => pow($_a, $_b)]); } } } var_dump($opResults === $funcResults);

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.40.0140.00019.05
8.3.30.0110.00319.23
8.3.20.0030.00520.42
8.3.10.0080.00020.90
8.3.00.0060.00319.76
8.2.170.0120.00322.96
8.2.160.0090.00920.69
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.26
8.2.110.0000.01020.78
8.2.100.0060.00618.34
8.2.90.0000.00719.47
8.2.80.0090.00017.97
8.2.70.0080.00018.00
8.2.60.0000.00818.18
8.2.50.0000.00818.07
8.2.40.0040.00418.53
8.2.30.0040.00419.65
8.2.20.0080.00017.96
8.2.10.0040.00418.31
8.2.00.0050.00218.01
8.1.270.0060.00324.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.05
8.1.230.0040.00719.46
8.1.220.0050.00318.04
8.1.210.0000.00818.77
8.1.200.0090.00317.48
8.1.190.0030.00517.38
8.1.180.0060.00318.10
8.1.170.0000.00918.96
8.1.160.0040.00422.39
8.1.150.0070.00019.05
8.1.140.0040.00417.71
8.1.130.0040.00418.08
8.1.120.0040.00417.77
8.1.110.0030.00517.72
8.1.100.0000.00817.53
8.1.90.0040.00417.76
8.1.80.0120.00017.63
8.1.70.0070.00017.68
8.1.60.0030.00517.89
8.1.50.0030.00617.79
8.1.40.0040.00417.79
8.1.30.0000.00817.91
8.1.20.0000.00917.88
8.1.10.0040.00417.79
8.1.00.0000.00817.79
8.0.300.0030.00618.77
8.0.290.0070.00017.00
8.0.280.0050.00318.61
8.0.270.0030.00317.43
8.0.260.0030.00317.49
8.0.250.0070.00017.23
8.0.240.0020.00517.26
8.0.230.0040.00417.20
8.0.220.0030.00517.18
8.0.210.0000.00817.02
8.0.200.0000.00617.21
8.0.190.0000.00817.23
8.0.180.0070.00017.20
8.0.170.0000.00817.23
8.0.160.0000.00717.10
8.0.150.0040.00417.12
8.0.140.0040.00417.02
8.0.130.0000.00613.68
8.0.120.0040.00417.13
8.0.110.0000.00817.07
8.0.100.0040.00417.20
8.0.90.0040.00417.18
8.0.80.0060.00917.18
8.0.70.0000.00717.02
8.0.60.0050.00316.98
8.0.50.0080.00017.18
8.0.30.0160.00417.11
8.0.20.0120.00717.40
8.0.10.0050.00217.11
8.0.00.0060.01317.09
7.4.330.0030.00315.48
7.4.320.0000.00616.71
7.4.300.0060.00016.74
7.4.290.0070.00016.90
7.4.280.0070.00016.86
7.4.270.0030.00516.89
7.4.260.0070.00016.87
7.4.250.0070.00016.80
7.4.240.0010.00716.83
7.4.230.0000.00816.79
7.4.220.0090.01616.77
7.4.210.0090.00616.82
7.4.200.0040.00416.88
7.4.160.0060.01116.63
7.4.150.0160.00317.40
7.4.140.0140.00817.86
7.4.130.0100.01016.68
7.4.120.0060.01216.80
7.4.110.0070.01016.81
7.4.100.0080.01016.84
7.4.90.0110.00816.88
7.4.80.0090.00919.39
7.4.70.0130.00516.84
7.4.60.0120.00616.73
7.4.50.0000.00816.59
7.4.40.0140.00416.83
7.4.30.0120.00916.66
7.4.00.0100.00715.07
7.3.330.0000.00613.39
7.3.320.0060.00013.53
7.3.310.0000.00716.40
7.3.300.0030.00316.58
7.3.290.0060.01316.59
7.3.280.0070.00816.52
7.3.270.0120.00617.40
7.3.260.0120.00616.62
7.3.250.0060.01316.63
7.3.240.0140.00516.62
7.3.230.0040.01316.83
7.3.210.0030.02016.57
7.3.200.0000.01719.39
7.3.190.0130.00416.66
7.3.180.0130.00616.66
7.3.170.0140.00316.78
7.3.160.0160.00016.71
7.3.120.0030.01515.06
7.3.110.0060.00915.07
7.3.100.0050.00715.00
7.3.90.0060.00914.91
7.3.80.0080.00615.18
7.3.70.0030.01214.98
7.3.60.0020.00915.06
7.3.50.0080.00615.15
7.3.40.0000.00915.06
7.3.30.0100.00615.13
7.3.20.0050.00916.61
7.3.10.0090.00616.88
7.3.00.0020.01216.71
7.2.330.0160.00316.95
7.2.320.0130.00616.92
7.2.310.0060.01216.87
7.2.300.0150.00616.88
7.2.290.0030.01316.97
7.2.250.0040.01415.00
7.2.240.0030.01515.27
7.2.230.0080.00815.04
7.2.220.0050.00615.31
7.2.210.0050.00915.46
7.2.200.0050.00515.21
7.2.190.0090.00915.24
7.2.180.0060.00815.09
7.2.170.0060.00915.15
7.2.160.0060.00915.06
7.2.150.0070.00717.18
7.2.140.0080.00417.03
7.2.130.0100.00716.89
7.2.120.0080.00317.13
7.2.110.0110.00717.33
7.2.100.0070.00716.84
7.2.90.0000.01317.26
7.2.80.0070.01017.21
7.2.70.0060.00817.20
7.2.60.0080.00717.21
7.2.50.0110.00717.26
7.2.40.0070.01016.96
7.2.30.0000.01217.34
7.2.20.0110.00417.27
7.2.10.0030.01017.34
7.2.00.0040.00718.33
7.1.330.0050.01015.74
7.1.320.0110.00316.05
7.1.310.0020.01016.01
7.1.300.0030.01316.06
7.1.290.0050.00716.15
7.1.280.0060.00616.18
7.1.270.0060.00916.04
7.1.260.0050.00916.10
7.1.250.0070.00715.77
7.1.200.0030.01016.20
7.1.100.0040.01117.95
7.1.70.0060.00917.34
7.1.60.0130.00919.46
7.1.50.0100.01317.30
7.1.00.0000.07322.54
7.0.200.0000.01016.95
7.0.140.0070.07322.33
7.0.60.0000.04320.20
7.0.50.0000.06018.21
7.0.40.0070.04320.38
7.0.30.0270.07720.28
7.0.20.0370.07320.20
7.0.10.0070.06020.22
7.0.00.0130.08320.35
5.6.280.0070.07021.25
5.6.210.0100.04720.94
5.6.200.0100.07318.43
5.6.190.0030.04320.54
5.6.180.0230.05720.68
5.6.170.0300.07020.79
5.6.160.0030.07720.57
5.6.150.0100.03718.31
5.6.140.0030.05018.39
5.6.130.0130.08018.36
5.6.120.0070.04021.36
5.6.110.0100.08721.27
5.6.100.0000.04321.42
5.6.90.0130.07321.29
5.6.80.0100.07720.66
5.5.350.0100.03720.43
5.5.340.0070.06018.04
5.5.330.0070.05320.13
5.5.320.0030.07320.28
5.5.310.0270.07320.34
5.5.300.0100.04017.98
5.5.290.0130.08017.91
5.5.280.0170.07320.88
5.5.270.0070.05320.75
5.5.260.0030.04720.84
5.5.250.0100.08320.59
5.5.240.0030.07720.18
5.4.450.0670.05019.49
5.4.440.0600.07019.49
5.4.430.0600.06719.68
5.4.420.0700.05719.52
5.4.410.0800.06019.35
5.4.400.0070.05719.31
5.4.390.0870.05719.29
5.4.380.0370.05018.63
5.4.370.0400.04718.71
5.4.360.0300.04718.80
5.4.350.0230.05718.80
5.4.340.0400.04718.55
5.4.320.0050.04112.50
5.4.310.0070.04112.49
5.4.300.0060.03612.50
5.4.290.0080.04612.50
5.4.280.0040.03612.39
5.4.270.0080.03612.39
5.4.260.0070.04812.39
5.4.250.0080.03812.39
5.4.240.0040.03712.39
5.4.230.0060.03712.38
5.4.220.0070.03912.38
5.4.210.0080.03312.38
5.4.200.0050.03912.39
5.4.190.0050.04212.38
5.4.180.0060.04212.38
5.4.170.0050.03812.39
5.4.160.0040.03812.39
5.4.150.0060.03712.38
5.4.140.0050.04012.07
5.4.130.0070.04212.05
5.4.120.0100.04112.02
5.4.110.0050.04312.02
5.4.100.0060.03912.02
5.4.90.0040.04212.02
5.4.80.0110.04312.02
5.4.70.0070.03812.02
5.4.60.0070.03412.01
5.4.50.0050.03712.01
5.4.40.0080.03812.00
5.4.30.0110.03812.00
5.4.20.0060.04211.99
5.4.10.0070.03412.00
5.4.00.0080.04011.49
5.3.290.0080.04012.80
5.3.280.0070.04712.71
5.3.270.0090.04612.73
5.3.260.0060.04212.72
5.3.250.0060.03812.72
5.3.240.0060.03812.72
5.3.230.0100.03812.71
5.3.220.0140.04512.68
5.3.210.0090.04212.68
5.3.200.0070.03712.68
5.3.190.0060.04712.68
5.3.180.0080.03312.68
5.3.170.0070.03712.66
5.3.160.0090.04012.68
5.3.150.0070.04012.67
5.3.140.0080.03412.66
5.3.130.0090.04112.66
5.3.120.0090.04312.66
5.3.110.0110.04412.66
5.3.100.0070.03712.12
5.3.90.0070.03612.09
5.3.80.0080.04112.07
5.3.70.0060.04512.07
5.3.60.0110.03212.06
5.3.50.0070.03612.00
5.3.40.0110.03312.00
5.3.30.0050.04511.95
5.3.20.0120.04211.73
5.3.10.0060.03611.70
5.3.00.0090.04211.69
5.2.170.0030.0379.19
5.2.160.0040.0309.19
5.2.150.0050.0389.19
5.2.140.0060.0329.18
5.2.130.0050.0299.14
5.2.120.0060.0319.14
5.2.110.0050.0309.15
5.2.100.0070.0359.14
5.2.90.0070.0389.14
5.2.80.0060.0309.14
5.2.70.0060.0359.14
5.2.60.0080.0349.09
5.2.50.0070.0319.05
5.2.40.0090.0319.04
5.2.30.0060.0389.02
5.2.20.0090.0409.00
5.2.10.0060.0298.93
5.2.00.0070.0428.79
5.1.60.0050.0268.07
5.1.50.0070.0398.07
5.1.40.0050.0268.05
5.1.30.0040.0278.40
5.1.20.0040.0288.42
5.1.10.0040.0318.14
5.1.00.0040.0318.14
5.0.50.0050.0206.63
5.0.40.0070.0226.48
5.0.30.0040.0336.29
5.0.20.0060.0286.29
5.0.10.0050.0266.27
5.0.00.0050.0386.26
4.4.90.0050.0174.78
4.4.80.0030.0174.76
4.4.70.0020.0164.76
4.4.60.0020.0194.75
4.4.50.0030.0154.77
4.4.40.0030.0354.71
4.4.30.0030.0234.76
4.4.20.0030.0264.85
4.4.10.0050.0194.84
4.4.00.0060.0254.76
4.3.110.0030.0204.67
4.3.100.0040.0174.66
4.3.90.0060.0214.64
4.3.80.0040.0304.59
4.3.70.0030.0204.63
4.3.60.0030.0194.63
4.3.50.0070.0234.63
4.3.40.0030.0304.54
4.3.30.0020.0153.31
4.3.20.0030.0183.29
4.3.10.0010.0283.25
4.3.00.0070.0237.90

preferences:
39.29 ms | 400 KiB | 5 Q