3v4l.org

run code in 300+ PHP versions simultaneously
<?php function positionX($alpha, $r) { $x = $r * cos(deg2rad($alpha)); // X coordinates return $x; } function positionY($alpha, $r){ $y = $r * sin(deg2rad($alpha)); // Y coordinates return $y; } echo round(positionX(0, 123)) . ', ' .round(positionY(0, 123)) . "\n"; echo round(positionX(45, 123)) . ', ' .round(positionY(45, 123)) . "\n"; echo round(positionX(90, 123)) . ', ' .round(positionY(90, 123)) . "\n"; echo round(positionX(135, 123)) . ', ' .round(positionY(135, 123)) . "\n"; echo round(positionX(180, 123)) . ', ' .round(positionY(180, 123)) . "\n"; echo round(positionX(22.5, 123)) . ', ' .round(positionY(22.5, 123)) . "\n";

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.70.0100.00717.16
8.3.60.0160.00618.77
8.3.50.0140.00718.31
8.3.40.0160.00019.25
8.3.30.0120.00318.88
8.3.20.0060.00318.98
8.3.10.0040.00421.98
8.3.00.0040.00422.15
8.2.180.0100.01018.61
8.2.170.0090.00619.29
8.2.160.0070.00722.96
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0070.00022.76
8.2.120.0080.00026.35
8.2.110.0090.00022.75
8.2.100.0080.00418.41
8.2.90.0040.00418.09
8.2.80.0040.00418.59
8.2.70.0080.00018.18
8.2.60.0060.00318.59
8.2.50.0030.00518.13
8.2.40.0000.00819.84
8.2.30.0040.00420.94
8.2.20.0030.00618.63
8.2.10.0030.00518.37
8.2.00.0040.00419.68
8.1.280.0140.00725.92
8.1.270.0030.00520.75
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.98
8.1.230.0080.00321.47
8.1.220.0040.00417.91
8.1.210.0050.00319.18
8.1.200.0050.00517.85
8.1.190.0000.00817.60
8.1.180.0000.00818.10
8.1.170.0000.00819.17
8.1.160.0050.00319.18
8.1.150.0040.00419.20
8.1.140.0050.00319.18
8.1.130.0040.00422.41
8.1.120.0070.00017.79
8.1.110.0060.00617.91
8.1.100.0000.00817.84
8.1.90.0070.00017.77
8.1.80.0000.00717.89
8.1.70.0030.00317.83
8.1.60.0000.00817.89
8.1.50.0030.00517.91
8.1.40.0000.01017.80
8.1.30.0030.00518.07
8.1.20.0000.00918.05
8.1.10.0020.00517.80
8.1.00.0040.00417.73
8.0.300.0060.00320.40
8.0.290.0000.00717.00
8.0.280.0000.00718.93
8.0.270.0050.00217.68
8.0.260.0060.00018.82
8.0.250.0060.00317.28
8.0.240.0000.00817.33
8.0.230.0070.00017.35
8.0.220.0000.00717.32
8.0.210.0040.00417.27
8.0.200.0020.00517.26
8.0.190.0000.00717.21
8.0.180.0000.00817.29
8.0.170.0100.00317.31
8.0.160.0000.00717.22
8.0.150.0040.00417.13
8.0.140.0040.00417.24
8.0.130.0000.00613.73
8.0.120.0040.00417.17
8.0.110.0050.00217.16
8.0.100.0030.00617.34
8.0.90.0000.00717.19
8.0.80.0070.01017.11
8.0.70.0000.00817.06
8.0.60.0000.00717.19
8.0.50.0040.00417.46
8.0.30.0070.01017.49
8.0.20.0100.00817.46
8.0.10.0000.00717.35
8.0.00.0110.00817.01
7.4.330.0000.00615.67
7.4.320.0030.00316.89
7.4.300.0040.00417.02
7.4.290.0070.00016.80
7.4.280.0040.00416.87
7.4.270.0030.00316.86
7.4.260.0070.00016.97
7.4.250.0040.00416.95
7.4.240.0000.00716.95
7.4.230.0000.00717.02
7.4.220.0030.00616.98
7.4.210.0090.00616.97
7.4.200.0000.00717.00
7.4.160.0100.01016.84
7.4.140.0130.00917.86
7.4.130.0110.00716.75
7.4.120.0120.00916.78
7.4.110.0030.01416.72
7.4.100.0070.01016.81
7.4.90.0100.01016.81
7.4.80.0160.00319.39
7.4.70.0130.00316.70
7.4.60.0120.00616.95
7.4.50.0100.00616.80
7.4.40.0080.00816.84
7.4.10.0150.00315.07
7.4.00.0040.01215.48
7.3.330.0000.00513.67
7.3.320.0050.00013.55
7.3.310.0000.00816.73
7.3.300.0030.00316.77
7.3.290.0000.00716.66
7.3.280.0050.00916.61
7.3.260.0120.00816.78
7.3.240.0090.00816.74
7.3.230.0060.01516.90
7.3.210.0130.01016.90
7.3.200.0140.00316.74
7.3.190.0070.01016.79
7.3.180.0070.01016.62
7.3.170.0100.00716.75
7.3.160.0040.01116.74
7.3.130.0030.01415.27
7.3.120.0030.01415.37
7.3.110.0110.00615.44
7.3.100.0050.01015.64
7.3.90.0110.00115.25
7.3.80.0090.00715.30
7.3.70.0040.00915.41
7.3.60.0070.00615.35
7.3.50.0070.00715.36
7.3.40.0120.00315.50
7.3.30.0050.00615.31
7.3.20.0090.00617.07
7.3.10.0080.00717.01
7.3.00.0080.00616.93
7.2.330.0150.00317.03
7.2.320.0120.00617.09
7.2.310.0070.01016.63
7.2.300.0070.01017.00
7.2.290.0160.00317.12
7.2.260.0140.00415.64
7.2.250.0030.01415.52
7.2.240.0060.00915.58
7.2.230.0070.00915.63
7.2.220.0050.01015.58
7.2.210.0040.01015.32
7.2.200.0050.01015.48
7.2.190.0060.00815.73
7.2.180.0090.00315.38
7.2.170.0060.00715.41
7.2.160.0090.00615.71
7.2.150.0090.00617.56
7.2.140.0070.01017.63
7.2.130.0050.01117.16
7.2.120.0060.00817.13
7.2.110.0060.01016.79
7.2.100.0410.00716.34
7.2.90.0170.01016.41
7.2.80.0250.00616.54
7.2.70.0220.00516.27
7.2.60.0170.00416.56
7.2.50.0250.01116.42
7.2.40.0290.01016.52
7.2.30.0260.00716.64
7.2.20.0280.01116.49
7.2.10.0260.00916.38
7.2.00.0320.00816.45
7.1.330.0110.00316.36
7.1.320.0050.00916.20
7.1.310.0070.00716.23
7.1.300.0030.00816.22
7.1.290.0070.00516.22
7.1.280.0050.00516.10
7.1.270.0060.00616.47
7.1.260.0050.00816.24
7.1.250.0080.00816.07
7.1.240.0060.00916.02
7.1.230.0040.00416.17
7.1.220.0310.00815.08
7.1.210.0190.01014.91
7.1.200.0240.00315.17
7.1.190.0270.00415.22
7.1.180.0300.00615.23
7.1.170.0210.00815.04
7.1.160.0220.00315.22
7.1.150.0260.00514.93
7.1.140.0320.00715.23
7.1.130.0470.00315.25
7.1.120.0360.00615.09
7.1.110.0290.00715.36
7.1.100.0450.00815.26
7.1.90.0240.00615.15
7.1.80.0200.01015.11
7.1.70.0640.00715.29
7.1.60.0290.01024.37
7.1.50.0280.01024.09
7.1.40.0290.00624.30
7.1.30.0270.00824.12
7.1.20.0320.01224.10
7.1.10.0210.00615.28
7.1.00.0240.00714.94
7.0.330.0070.00315.69
7.0.320.0030.01315.92
7.0.310.0070.00715.88
7.0.300.0070.00715.72
7.0.290.0070.00715.79
7.0.280.0030.00915.84
7.0.270.0000.01015.89
7.0.260.0040.01515.77
7.0.250.0040.01415.93
7.0.240.0110.00415.95
7.0.230.0090.00615.87
7.0.220.0070.00715.88
7.0.210.0110.00615.84
7.0.200.0000.00915.87
7.0.190.0070.00715.85
7.0.180.0070.00715.84
7.0.170.0030.01016.09
7.0.160.0100.00715.96
7.0.150.0080.00815.60
7.0.140.0030.01015.87
7.0.130.0000.01515.84
7.0.120.0070.00716.01
7.0.110.0030.01215.70
7.0.100.0080.00316.03
7.0.90.0030.01015.59
7.0.80.0000.01315.63
7.0.70.0030.01015.86
7.0.60.0120.00315.93
7.0.50.0030.01015.82
7.0.40.0040.01114.03
7.0.30.0060.00614.04
7.0.20.0040.00413.89
7.0.10.0000.01514.11
7.0.00.0070.00713.77
5.6.400.0030.01014.73
5.6.390.0030.00614.95
5.6.380.0130.00214.66
5.6.370.0060.00914.52
5.6.360.0070.00714.95
5.6.350.0080.00414.73
5.6.340.0070.01014.93
5.6.330.0000.01414.84
5.6.320.0090.00614.95
5.6.310.0060.00914.65
5.6.300.0080.00315.05
5.6.290.0070.00614.89
5.6.280.0100.00714.87
5.6.270.0100.00714.86
5.6.260.0130.00014.71
5.6.250.0090.00914.65
5.6.240.0040.00414.88
5.6.230.0060.00614.76
5.6.220.0030.01314.67
5.6.210.0030.01014.62
5.6.200.0080.00414.92
5.6.190.0030.00914.82
5.6.180.0090.00315.12
5.6.170.0000.01114.83
5.6.160.0120.00315.00
5.6.150.0100.00314.88
5.6.140.0100.00014.86
5.6.130.0040.00414.80
5.6.120.0040.00414.84
5.6.110.0030.00614.92
5.6.100.0000.01014.77
5.6.90.0000.01415.03
5.6.80.0000.01314.67
5.6.70.0040.00414.80
5.6.60.0110.00414.82
5.6.50.0070.00314.61
5.6.40.0130.00014.97
5.6.30.0080.00414.77
5.6.20.0040.01114.54
5.6.10.0000.01414.55
5.6.00.0040.01114.94

preferences:
57.23 ms | 400 KiB | 5 Q