3v4l.org

run code in 300+ PHP versions simultaneously
<?php $actual = version_compare('1.0.6.8', '1.0.6.10','>'); // returns -1 if the first version is lower than the second, 0 if they are equal, and 1 if the second is lower. $expected = -1; var_dump($expected, $actual);

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.60.0030.01016.63
8.3.50.0070.01016.10
8.3.40.0070.00718.45
8.3.30.0070.00718.49
8.3.20.0040.00420.21
8.3.10.0080.00021.83
8.3.00.0040.00419.41
8.2.180.0090.00616.50
8.2.170.0070.00722.96
8.2.160.0070.00720.49
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00019.32
8.2.120.0090.00026.35
8.2.110.0030.00619.45
8.2.100.0060.00618.22
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0090.00517.25
8.2.60.0050.00217.80
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0000.00819.28
8.2.20.0040.00417.80
8.2.10.0000.00717.96
8.2.00.0040.00417.94
8.1.280.0070.01125.92
8.1.270.0030.00523.86
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.41
8.1.230.0030.01117.42
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00717.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.37
8.1.160.0030.00318.99
8.1.150.0000.00720.72
8.1.140.0000.00719.56
8.1.130.0000.00718.71
8.1.120.0030.00317.30
8.1.110.0040.00417.40
8.1.100.0030.00517.35
8.1.90.0000.00817.35
8.1.80.0070.00017.41
8.1.70.0040.00417.34
8.1.60.0000.00817.51
8.1.50.0000.00717.27
8.1.40.0020.00517.47
8.1.30.0040.00417.62
8.1.20.0030.00617.55
8.1.10.0040.00417.34
8.1.00.0000.00817.35
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00818.31
8.0.270.0000.00717.18
8.0.260.0070.00016.79
8.0.250.0030.00316.80
8.0.240.0040.00416.89
8.0.230.0000.00716.93
8.0.220.0040.00416.71
8.0.210.0000.00716.82
8.0.200.0030.00316.77
8.0.190.0000.00816.87
8.0.180.0000.00716.90
8.0.170.0000.00716.79
8.0.160.0070.00016.74
8.0.150.0040.00416.73
8.0.140.0040.00416.82
8.0.130.0080.00013.22
8.0.120.0040.00416.67
8.0.110.0030.00316.59
8.0.100.0000.00716.62
8.0.90.0050.00216.78
8.0.80.0080.01316.80
8.0.70.0050.00216.82
8.0.60.0040.00416.84
8.0.50.0000.00716.80
8.0.30.0080.00617.04
8.0.20.0110.00917.40
8.0.10.0000.00716.89
8.0.00.0080.01016.63
7.4.330.0000.00515.55
7.4.320.0060.00016.44
7.4.300.0000.00616.43
7.4.290.0030.00316.39
7.4.280.0000.00816.31
7.4.270.0000.00616.41
7.4.260.0000.00613.22
7.4.250.0040.00416.32
7.4.240.0040.00416.41
7.4.230.0070.00016.23
7.4.220.0090.00916.39
7.4.210.0090.00516.52
7.4.200.0050.00216.27
7.4.160.0070.01116.45
7.4.150.0090.00917.40
7.4.140.0140.00917.86
7.4.130.0080.01216.37
7.4.120.0100.00916.43
7.4.110.0130.00316.46
7.4.100.0080.01416.35
7.4.90.0080.00816.39
7.4.80.0080.00819.39
7.4.70.0100.01016.43
7.4.60.0100.00716.38
7.4.50.0090.00616.28
7.4.40.0130.01016.28
7.4.30.0090.00916.51
7.4.00.0040.01114.65
7.3.330.0030.00312.87
7.3.320.0050.00012.93
7.3.310.0000.00716.13
7.3.300.0000.00716.04
7.3.290.0030.00316.16
7.3.280.0070.01116.14
7.3.270.0100.00717.40
7.3.260.0130.00616.32
7.3.250.0100.01116.16
7.3.240.0180.00216.19
7.3.230.0070.01416.02
7.3.210.0120.00916.18
7.3.200.0080.00816.49
7.3.190.0120.00316.18
7.3.180.0090.00616.51
7.3.170.0100.01016.14
7.3.160.0120.00916.35
7.3.10.0060.00616.05
7.3.00.0070.00716.37
7.2.330.0090.00916.48
7.2.320.0130.01316.49
7.2.310.0180.00016.20
7.2.300.0100.01316.18
7.2.290.0070.01016.40
7.2.130.0040.00816.70
7.2.120.0030.00916.11
7.2.110.0000.01016.81
7.2.100.0030.00716.57
7.2.90.0350.00515.65
7.2.80.0080.00415.62
7.2.70.0050.01115.76
7.2.60.0050.01215.59
7.2.50.0870.00715.86
7.2.40.0070.00615.97
7.2.30.0070.00715.96
7.2.20.0560.00515.64
7.2.10.0300.00615.74
7.2.00.0090.00515.78
7.1.250.0060.00615.71
7.1.210.0120.00513.76
7.1.200.0370.00314.04
7.1.190.0110.00313.97
7.1.180.0090.00613.78
7.1.170.0320.00013.97
7.1.160.0090.00313.83
7.1.150.0070.00414.00
7.1.140.1720.01013.86
7.1.130.0130.00713.71
7.1.120.0640.01513.98
7.1.110.1600.00013.88
7.1.100.0620.00313.72
7.1.90.1610.00013.91
7.1.80.1830.01013.97
7.1.70.2140.00713.80
7.1.60.1720.00631.63
7.1.50.0260.01031.69
7.1.40.0520.00932.02
7.1.30.0330.00631.85
7.1.20.0280.00631.83
7.1.10.0880.00713.72
7.1.00.1790.00313.89
7.0.310.0150.00613.16
7.0.300.0540.00413.70
7.0.290.0040.00813.33
7.0.280.0080.00813.68
7.0.270.0820.00313.30
7.0.260.0110.00313.32
7.0.250.0660.00313.32
7.0.240.0170.00313.20
7.0.230.2330.00313.55
7.0.220.2290.00613.51
7.0.210.0110.00413.59
7.0.200.0170.00313.46
7.0.190.0190.00013.68
7.0.180.0240.00713.29
7.0.170.0120.01213.48
7.0.160.0170.00013.52
7.0.150.0100.01013.30
7.0.140.1350.01013.71
7.0.130.1920.00313.37
7.0.120.1480.00313.44
7.0.110.0580.00613.15
7.0.100.0120.00613.54
7.0.90.0040.01113.52
7.0.80.0120.00413.54
7.0.70.0120.00913.50
7.0.60.2020.00313.49
7.0.50.1680.00613.48
7.0.40.1080.00613.52
7.0.30.1280.00013.59
7.0.20.2100.00613.45
7.0.10.1490.00613.54
7.0.00.1200.00613.38

preferences:
51.9 ms | 401 KiB | 5 Q