3v4l.org

run code in 300+ PHP versions simultaneously
<?php $moves = 10; $startAngle = rand(0, 90); $angles = array($startAngle); for ( $i=1; $i<$moves; $i++ ) { $angles[$i] = $angles[$i-1] + (90 - 2*$startAngle)/($moves-1); } var_dump($angles);

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.0120.00614.84
7.4.00.0000.01915.12
7.3.130.0030.01614.65
7.3.120.0070.01115.06
7.3.110.0090.00615.02
7.3.100.0030.01314.81
7.3.90.0030.01414.81
7.3.80.0030.00715.13
7.3.70.0070.01014.81
7.3.60.0060.00914.86
7.3.50.0100.00314.69
7.3.40.0030.01014.99
7.3.30.0130.00014.61
7.3.20.0060.00916.74
7.3.10.0070.00716.75
7.3.00.0060.00316.45
7.2.260.0070.01315.16
7.2.250.0040.01115.20
7.2.240.0090.00615.07
7.2.230.0090.00615.31
7.2.220.0070.00715.02
7.2.210.0060.01015.21
7.2.200.0110.00714.96
7.2.190.0070.01115.05
7.2.180.0030.00914.94
7.2.170.0040.01115.14
7.2.160.0080.00315.07
7.2.150.0040.00716.94
7.2.140.0070.00716.63
7.2.130.0120.00316.89
7.2.120.0100.00617.02
7.2.110.0070.01116.94
7.2.100.0030.00917.04
7.2.90.0060.01217.04
7.2.80.0070.00716.96
7.2.70.0060.00316.96
7.2.60.0070.00416.80
7.2.50.0000.01617.07
7.2.40.0040.01116.76
7.2.30.0090.00917.00
7.2.20.0040.01117.12
7.2.10.0060.01016.77
7.2.00.0070.01018.25
7.1.330.0070.00715.88
7.1.320.0030.00915.74
7.1.310.0130.00015.94
7.1.300.0100.00315.86
7.1.290.0130.00316.04
7.1.280.0060.00915.80
7.1.270.0060.00615.84
7.1.260.0040.01215.81
7.1.250.0100.00315.97
7.1.240.0060.00915.63
7.1.230.0040.01415.71
7.1.220.0070.00715.82
7.1.210.0110.00415.73
7.1.200.0090.00615.69
7.1.190.0000.01015.79
7.1.180.0060.00615.76
7.1.170.0100.00315.94
7.1.160.0070.00315.94
7.1.150.0030.00715.68
7.1.140.0040.00815.91
7.1.130.0030.00715.80
7.1.120.0040.01415.60
7.1.110.0030.00715.91
7.1.100.0040.01215.99
7.1.90.0080.00415.71
7.1.80.0000.01516.00
7.1.70.0040.00716.56
7.1.60.0070.01017.64
7.1.50.0050.01516.13
7.1.40.0070.00715.77
7.1.30.0030.01015.55
7.1.20.0070.00715.68
7.1.10.0030.01015.98
7.1.00.0080.04019.02
7.0.330.0110.00015.30
7.0.320.0100.00315.35
7.0.310.0130.00315.59
7.0.300.0000.01015.45
7.0.290.0100.00615.63
7.0.280.0060.00615.39
7.0.270.0080.00315.44
7.0.260.0040.01115.34
7.0.250.0000.01015.42
7.0.240.0140.00015.38
7.0.230.0040.00415.60
7.0.220.0030.01015.56
7.0.210.0030.01315.65
7.0.200.0050.00616.07
7.0.190.0000.00915.47
7.0.180.0040.01115.27
7.0.170.0070.00715.58
7.0.160.0030.01315.49
7.0.150.0040.00415.57
7.0.140.0060.03718.87
7.0.130.0040.01115.55
7.0.120.0030.00715.52
7.0.110.0030.01215.49
7.0.100.0070.00315.52
7.0.90.0000.00915.57
7.0.80.0000.01315.44
7.0.70.0030.01015.25
7.0.60.0000.02817.70
7.0.50.0080.02516.66
7.0.40.0090.03016.88
7.0.30.0180.04216.95
7.0.20.0100.02316.66
7.0.10.0030.05016.84
7.0.00.0050.03616.78
5.6.400.0110.00014.39
5.6.390.0070.01014.18
5.6.380.0080.00414.46
5.6.370.0100.00014.41
5.6.360.0030.01213.97
5.6.350.0000.00914.55
5.6.340.0090.00314.44
5.6.330.0060.00314.03
5.6.320.0090.00614.46
5.6.310.0060.01014.36
5.6.300.0130.00014.52
5.6.290.0100.00714.43
5.6.280.0030.04017.55
5.6.270.0030.01014.10
5.6.260.0080.00814.07
5.6.250.0040.00814.55
5.6.240.0060.00614.55
5.6.230.0060.00914.47
5.6.220.0040.00814.45
5.6.210.0040.03717.61
5.6.200.0110.02016.22
5.6.190.0080.02817.55
5.6.180.0120.02317.43
5.6.170.0130.02817.37
5.6.160.0080.04617.44
5.6.150.0030.03816.24
5.6.140.0050.02216.09
5.6.130.0030.02516.20
5.6.120.0080.04817.83
5.6.110.0050.02317.79
5.6.100.0030.04617.64
5.6.90.0050.04717.77
5.6.80.0070.04717.46
5.6.70.2280.02217.26
5.6.60.0090.00314.38
5.6.50.0110.00714.18
5.6.40.0060.00814.29
5.6.30.0090.00314.48
5.6.20.0070.00714.21
5.6.10.0030.01414.21
5.6.00.0110.00414.31
5.5.380.0000.01214.41
5.5.370.0030.01014.28
5.5.360.0060.00914.14
5.5.350.0100.04017.32
5.5.340.0060.03116.05
5.5.330.0070.02317.35
5.5.320.0130.02717.29
5.5.310.0130.04317.36
5.5.300.0080.02316.04
5.5.290.0120.02016.29
5.5.280.0050.03817.50
5.5.270.0020.03517.57
5.5.260.0080.04517.64
5.5.250.0080.01917.42
5.5.240.0150.04317.29
5.5.230.0100.00514.43
5.5.220.0110.00414.15
5.5.210.0040.00814.38
5.5.200.0070.01114.54
5.5.190.0060.00914.13
5.5.180.0000.01814.30
5.5.170.0100.00314.11
5.5.160.0070.00714.12
5.5.150.0050.01014.38
5.5.140.0050.00514.07
5.5.130.0130.00014.33
5.5.120.0140.00314.16
5.5.110.0070.00514.40
5.5.100.0040.00814.19
5.5.90.0080.00814.22
5.5.80.0040.01114.35
5.5.70.0040.00814.46
5.5.60.0080.00613.92
5.5.50.0070.00414.16
5.5.40.0110.00014.51
5.5.30.0080.00414.29
5.5.20.0070.00713.76
5.5.10.0030.01314.32
5.5.00.0140.00314.44
5.4.450.0470.02715.64
5.4.440.0480.02815.70
5.4.430.0530.03615.45
5.4.420.0380.00315.66
5.4.410.0130.03315.33
5.4.400.0100.03215.21
5.4.390.0110.03115.17
5.4.380.0180.02515.21
5.4.370.0020.02715.21
5.4.360.0020.03115.17
5.4.350.0080.02511.90
5.4.340.0060.02311.89
5.4.330.0040.00811.81
5.4.320.0040.02212.13
5.4.310.0080.02312.13
5.4.300.0040.02312.13
5.4.290.0040.02412.13
5.4.280.0070.02412.07
5.4.270.0090.02112.07
5.4.260.0070.02412.07
5.4.250.0060.03312.07
5.4.240.0060.02612.07
5.4.230.0060.03012.07
5.4.220.0060.02912.07
5.4.210.0200.03512.07
5.4.200.0150.05012.06
5.4.190.0090.03112.07
5.4.180.0150.03412.07
5.4.170.0110.02812.07
5.4.160.0070.02712.07
5.4.150.0080.02812.07
5.4.140.0120.02911.91
5.4.130.0050.03311.90
5.4.120.0080.03311.88
5.4.110.0130.03211.88
5.4.100.0090.03511.88
5.4.90.0110.04111.88
5.4.80.0080.03111.88
5.4.70.0090.02611.88
5.4.60.0120.02511.87
5.4.50.0100.04811.88
5.4.40.0070.03511.87
5.4.30.0110.02511.87
5.4.20.0170.02811.87
5.4.10.0090.03311.87
5.4.00.0040.03411.62
5.3.290.0090.02712.31
5.3.280.0100.03312.26
5.3.270.0140.03212.27
5.3.260.0150.04012.27
5.3.250.0120.06212.27
5.3.240.0120.04212.27
5.3.230.0090.03512.26
5.3.220.0130.04412.25
5.3.210.0120.03212.25
5.3.200.0140.04712.25
5.3.190.0110.04312.25
5.3.180.0080.05112.24
5.3.170.0170.04312.24
5.3.160.0130.05312.24
5.3.150.0110.04312.24
5.3.140.0380.05712.24
5.3.130.0130.04312.23
5.3.120.0060.03712.24
5.3.110.0130.03812.23
5.3.100.0110.04311.96
5.3.90.0070.04911.95
5.3.80.0110.04511.95
5.3.70.0210.06411.95
5.3.60.0110.03411.94
5.3.50.0130.04611.91
5.3.40.0100.04711.91
5.3.30.0120.02411.88
5.3.20.0100.03411.76
5.3.10.0120.02811.74
5.3.00.0090.02711.74
5.2.170.0090.0629.16
5.2.160.0130.0659.16
5.2.150.0150.0969.16
5.2.140.0150.1059.16
5.2.130.0070.0519.12
5.2.120.0190.0799.13
5.2.110.0310.0829.13
5.2.100.0060.0549.13
5.2.90.0260.0829.13
5.2.80.0320.0769.11
5.2.70.0220.0629.12
5.2.60.0040.0399.07
5.2.50.0060.0419.05
5.2.40.0150.0549.02
5.2.30.0270.0829.00
5.2.20.0140.0508.97
5.2.10.0280.0688.91
5.2.00.0160.0518.77
5.1.60.0140.0608.05
5.1.50.0090.0398.05
5.1.40.0120.0688.04
5.1.30.0090.0648.39
5.1.20.0250.0808.41
5.1.10.0060.0328.13
5.1.00.0140.0418.14
5.0.50.0100.0356.60
5.0.40.0200.0666.46
5.0.30.0220.0766.27
5.0.20.0260.0956.26
5.0.10.0080.0536.23
5.0.00.0090.0586.23
4.4.90.0080.0384.78
4.4.80.0100.0734.75
4.4.70.0080.0384.75
4.4.60.0100.0374.75
4.4.50.0100.0274.77
4.4.40.0060.0484.71
4.4.30.0090.0604.76
4.4.20.0100.0394.84
4.4.10.0050.0444.85
4.4.00.0100.0744.76
4.3.110.0020.0444.67
4.3.100.0100.0344.66
4.3.90.0020.0484.63
4.3.80.0040.0394.58
4.3.70.0090.0364.63
4.3.60.0210.0334.63
4.3.50.0060.0444.63
4.3.40.0080.0594.54
4.3.30.0080.0323.28
4.3.20.0060.0343.26
4.3.10.0020.0443.22
4.3.00.0170.0206.90

preferences:
31.82 ms | 401 KiB | 5 Q