3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GeoCoder { protected $latitude; protected $longitude; public $distance; public function __construct($lat,$long,$dist) { $this->latitude = $lat; $this->longitude = $long; $this->distance = $dist; } } $o1 = new GeoCoder(-22.43,-46.81,1500.00); $o2 = new GeoCoder(-22.42,-46.82,1740.00); $o3 = new GeoCoder(-21.43,-46.80,152.00); $a = array($o1, $o2, $o3); sort($a); var_dump($a);

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.0200.00018.80
8.3.30.0070.00719.08
8.3.20.0030.00620.35
8.3.10.0050.00223.53
8.3.00.0000.00819.00
8.2.170.0070.00722.96
8.2.160.0100.01020.32
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0030.00526.16
8.2.120.0030.01721.04
8.2.110.0080.00322.14
8.2.100.0110.00017.50
8.2.90.0000.00819.18
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0050.00318.34
8.2.30.0080.00018.13
8.2.20.0000.00817.75
8.2.10.0000.00818.13
8.2.00.0000.00817.75
8.1.270.0080.00023.95
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0030.00622.14
8.1.230.0080.00419.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00420.43
8.1.160.0030.00621.95
8.1.150.0040.00418.93
8.1.140.0000.00717.45
8.1.130.0000.00717.83
8.1.120.0000.00717.34
8.1.110.0040.00417.52
8.1.100.0000.00817.40
8.1.90.0000.00717.36
8.1.80.0000.00717.48
8.1.70.0030.00317.45
8.1.60.0000.01017.61
8.1.50.0080.00017.41
8.1.40.0040.00417.47
8.1.30.0060.00317.55
8.1.20.0080.00017.68
8.1.10.0000.00917.51
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0070.00018.38
8.0.270.0000.00717.19
8.0.260.0030.00317.21
8.0.250.0040.00416.95
8.0.240.0040.00417.03
8.0.230.0030.00316.84
8.0.220.0000.00716.81
8.0.210.0060.00316.88
8.0.200.0040.00417.00
8.0.190.0040.00416.82
8.0.180.0000.00716.93
8.0.170.0050.00316.80
8.0.160.0040.00416.99
8.0.150.0000.00716.84
8.0.140.0030.00616.87
8.0.130.0030.00313.38
8.0.120.0040.00416.86
8.0.110.0060.00316.92
8.0.100.0050.00216.90
8.0.90.0020.00516.83
8.0.80.0140.00716.89
8.0.70.0050.00216.68
8.0.60.0050.00217.01
8.0.50.0070.00016.80
8.0.30.0130.00717.17
8.0.20.0170.00217.40
8.0.10.0040.00416.82
8.0.00.0140.00616.76
7.4.330.0060.00015.13
7.4.320.0060.00016.53
7.4.300.0070.00016.59
7.4.290.0000.00816.61
7.4.280.0000.00716.51
7.4.270.0040.00416.65
7.4.260.0030.00316.42
7.4.250.0040.00416.62
7.4.240.0010.00616.53
7.4.230.0000.00716.61
7.4.220.0060.01216.45
7.4.210.0150.00316.54
7.4.200.0000.00716.63
7.4.160.0130.00316.57
7.4.150.0140.00717.40
7.4.140.0110.01017.86
7.4.130.0080.01316.42
7.4.120.0050.01516.53
7.4.110.0120.00616.54
7.4.100.0150.00416.52
7.4.90.0110.00716.66
7.4.80.0120.00619.39
7.4.70.0150.00316.42
7.4.60.0110.00516.53
7.4.50.0000.00416.68
7.4.40.0120.00616.29
7.4.30.0080.00816.59
7.4.00.0090.00915.19
7.3.330.0000.00613.22
7.3.320.0060.00013.32
7.3.310.0070.00016.25
7.3.300.0030.00316.29
7.3.290.0050.01316.24
7.3.280.0080.01116.21
7.3.270.0110.00717.40
7.3.260.0140.01116.46
7.3.250.0170.00316.39
7.3.240.0100.01016.42
7.3.230.0070.01116.39
7.3.210.0160.00516.23
7.3.200.0090.00719.39
7.3.190.0040.02216.29
7.3.180.0060.00916.26
7.3.170.0030.02016.27
7.3.160.0100.00716.26
7.3.00.0030.01016.18
7.2.330.0090.00916.73
7.2.320.0090.00916.61
7.2.310.0100.01016.75
7.2.300.0040.01216.68
7.2.290.0000.01916.46
7.2.130.0110.00416.60
7.2.120.0060.00616.64
7.2.110.0070.00416.65
7.2.100.0060.00616.90
7.2.90.0200.00016.70
7.2.80.0030.01016.63
7.2.70.0160.00016.81
7.2.60.0120.00316.73
7.2.50.0140.00316.30
7.2.40.0070.01016.55
7.2.30.0000.01616.51
7.2.20.0030.00916.56
7.2.10.0080.00816.76
7.2.00.0090.00916.71
7.1.250.0070.00715.39
7.1.240.0110.00015.95
7.1.230.0040.01115.17
7.1.220.0080.00815.48
7.1.210.0070.00415.76
7.1.200.0060.00915.25
7.1.190.0080.00615.26
7.1.180.0130.00315.70
7.1.170.0030.01415.63
7.1.160.0120.00415.80
7.1.150.0090.00615.65
7.1.140.0030.01015.55
7.1.130.0060.01215.41
7.1.120.0040.01115.73
7.1.110.0060.00615.80
7.1.100.0070.00715.71
7.1.90.0090.00615.37
7.1.80.0110.00315.71
7.1.70.0040.01016.33
7.1.60.0080.01217.36
7.1.50.0080.01316.33
7.1.40.0040.00815.68
7.1.30.0070.00715.84
7.1.20.0030.01215.66
7.1.10.0040.00915.62
7.1.00.0090.03719.11
7.0.330.0070.00314.91
7.0.320.0040.01115.25
7.0.310.0080.00815.06
7.0.300.0100.00515.32
7.0.290.0120.00614.70
7.0.280.0100.00314.88
7.0.270.0130.00715.28
7.0.260.0080.00815.31
7.0.250.0120.00315.50
7.0.240.0030.01215.41
7.0.230.0060.00915.55
7.0.220.0100.00715.10
7.0.210.0090.00615.20
7.0.200.0100.00315.96
7.0.190.0120.00315.29
7.0.180.0070.00715.07
7.0.170.0120.00615.45
7.0.160.0090.00915.06
7.0.150.0140.00315.35
7.0.140.0070.03718.69
7.0.130.0120.00615.28
7.0.120.0100.00715.43
7.0.110.0110.00314.92
7.0.100.0100.00315.13
7.0.90.0150.00015.14
7.0.80.0100.00315.18
7.0.70.0100.00715.35
7.0.60.0070.04717.63
7.0.50.0090.02216.58
7.0.40.0040.02416.69
7.0.30.0280.03016.56
7.0.20.0160.04416.63
7.0.10.0080.02216.74
7.0.00.0050.02516.67
5.6.380.0000.01114.22
5.6.370.0060.00914.44
5.6.360.0120.00014.50
5.6.350.0090.00314.30
5.6.340.0060.00614.44
5.6.330.0100.00714.35
5.6.320.0030.01014.34
5.6.310.0050.00514.46
5.6.300.0030.00714.25
5.6.290.0030.00914.17
5.6.280.0080.03617.66
5.6.270.0080.00414.19
5.6.260.0050.01114.46
5.6.250.0040.01214.29
5.6.240.0060.00614.50
5.6.230.0040.01114.67
5.6.220.0040.00714.42
5.6.210.0130.03517.32
5.6.200.0090.04416.04
5.6.190.0080.04717.33
5.6.180.0150.02317.39
5.6.170.0210.04517.41
5.6.160.0030.02817.41
5.6.150.0050.04816.09
5.6.140.0030.05016.14
5.6.130.0050.02516.19
5.6.120.0030.04317.53
5.6.110.0070.04317.51
5.6.100.0030.04617.65
5.6.90.0000.05017.79
5.6.80.0000.02717.21
5.6.70.2130.02717.28
5.6.60.0060.00614.17
5.6.50.0090.00614.04
5.6.40.0070.00714.24
5.6.30.0130.00014.10
5.6.20.0060.00314.00
5.6.10.0000.01214.19
5.6.00.0000.00914.06
5.5.380.0030.00711.18
5.5.370.0030.00610.93
5.5.360.0070.00010.96
5.5.350.0200.03715.70
5.5.340.0100.03314.48
5.5.330.0070.04315.75
5.5.320.0150.02315.63
5.5.310.0170.04015.68
5.5.300.0060.04214.60
5.5.290.0080.04114.58
5.5.280.0110.02615.79
5.5.270.0100.04115.81
5.5.260.0070.04215.88
5.5.250.0080.03915.77
5.5.240.1530.02015.62
5.5.230.0000.00711.02
5.5.220.0030.00610.91
5.5.210.0040.01010.74
5.5.200.0030.00810.82
5.5.190.0040.00410.82
5.5.180.0070.00010.82
5.5.170.0060.00310.96
5.5.160.0070.00011.00
5.5.150.0030.00610.55
5.5.140.0060.00610.84
5.5.130.0030.00911.15
5.5.120.0070.00011.08
5.5.110.0060.00311.25
5.5.100.0040.00711.14
5.5.90.0070.00311.14
5.5.80.0030.00911.09
5.5.70.0000.00911.14
5.5.60.0030.00710.68
5.5.50.0030.00310.67
5.5.40.0060.00310.82
5.5.30.0030.00511.21
5.5.20.0030.00611.13
5.5.10.0030.00311.20
5.5.00.0060.00611.19
5.4.450.0300.03215.23
5.4.440.0360.04415.06
5.4.430.0320.03015.40
5.4.420.0440.02814.94
5.4.410.0420.02615.21
5.4.400.0500.03315.13
5.4.390.0290.02815.14
5.4.380.0380.03515.10
5.4.370.0350.03314.92
5.4.360.0530.03214.88
5.4.350.0360.02614.93
5.4.340.0040.02011.46
5.4.330.0030.00710.78
5.4.320.0040.02111.81
5.4.310.0060.02211.65
5.4.300.0070.01911.52
5.4.290.0060.02311.53
5.4.280.0020.02211.65
5.4.270.0070.01711.54
5.4.260.0040.02311.55
5.4.250.0070.02111.50
5.4.240.0080.01611.72
5.4.230.0050.02211.64
5.4.220.0040.02111.54
5.4.210.0060.02011.41
5.4.200.0070.02211.64
5.4.190.0050.01911.63
5.4.180.0040.02311.60
5.4.170.0060.01911.59
5.4.160.0090.01611.62
5.4.150.0040.02111.69
5.4.140.0050.02111.62
5.4.130.0020.02511.50
5.4.120.0080.01811.45
5.4.110.0040.01911.43
5.4.100.0020.02311.31
5.4.90.0040.02111.50
5.4.80.0030.02111.36
5.4.70.0050.02211.36
5.4.60.0040.02011.42
5.4.50.0040.02111.47
5.4.40.0070.01911.33
5.4.30.0070.02011.38
5.4.20.0060.01811.40
5.4.10.0040.02111.49
5.4.00.0080.02311.14
5.3.290.0040.02211.75
5.3.280.0050.01911.61
5.3.270.0080.01811.70
5.3.260.0060.02011.59
5.3.250.0040.02611.64
5.3.240.0040.02111.66
5.3.230.0040.02111.58
5.3.220.0020.02311.46
5.3.210.0050.02311.46
5.3.200.0040.02311.55
5.3.190.0070.02711.54
5.3.180.0050.02011.63
5.3.170.0060.01911.55
5.3.160.0040.02111.47
5.3.150.0020.02311.54
5.3.140.0060.01811.55
5.3.130.0070.02111.59
5.3.120.0080.02011.51
5.3.110.0040.02311.56
5.3.100.0050.01911.27
5.3.90.0040.02211.23
5.3.80.0050.02111.27
5.3.70.0050.02011.25
5.3.60.0060.01911.30
5.3.50.0060.02011.14
5.3.40.0050.01911.22
5.3.30.0060.02011.29
5.3.20.0090.01811.12
5.3.10.0050.02010.98
5.3.00.0040.02610.99
5.2.170.0080.0199.73
5.2.160.0050.0149.73
5.2.150.0030.0209.73
5.2.140.0030.0169.72
5.2.130.0020.0199.70
5.2.120.0050.0159.71
5.2.110.0030.0189.71
5.2.100.0020.0179.71
5.2.90.0030.0179.71
5.2.80.0040.0179.71
5.2.70.0040.0179.71
5.2.60.0040.0189.68
5.2.50.0030.0189.67
5.2.40.0040.0169.65
5.2.30.0040.0159.64
5.2.20.0060.0169.64
5.2.10.0030.0179.59
5.2.00.0020.0199.53
5.1.60.0030.0159.16
5.1.50.0040.0149.16
5.1.40.0020.0149.15
5.1.30.0020.0189.33
5.1.20.0060.0139.34
5.1.10.0050.0139.20
5.1.00.0040.0159.20
5.0.50.0040.0118.44
5.0.40.0050.0098.37
5.0.30.0040.0158.28
5.0.20.0010.0148.27
5.0.10.0040.0118.26
5.0.00.0050.0148.26
4.4.90.0020.0097.51
4.4.80.0020.0087.49
4.4.70.0020.0097.50
4.4.60.0020.0107.49
4.4.50.0020.0097.50
4.4.40.0010.0157.47
4.4.30.0030.0097.50
4.4.20.0020.0107.54
4.4.10.0030.0127.54
4.4.00.0040.0187.50
4.3.110.0010.0117.45
4.3.100.0020.0107.45
4.3.90.0030.0087.43
4.3.80.0040.0147.41
4.3.70.0030.0087.43
4.3.60.0020.0087.43
4.3.50.0020.0107.43
4.3.40.0040.0127.39
4.3.30.0010.0106.77
4.3.20.0020.0106.76
4.3.10.0020.0096.74
4.3.00.0040.0138.51

preferences:
39.86 ms | 400 KiB | 5 Q