3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass1 = "testpass"; $pass2 = "testpass "; if(trim($pass1) <> trim($pass2)){ echo 'Dont match'; }else{echo 'Match!';}

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.0070.00716.63
8.3.50.0110.01115.89
8.3.40.0040.01118.66
8.3.30.0230.00018.44
8.3.20.0090.00021.47
8.3.10.0040.00423.56
8.3.00.0040.00418.03
8.2.180.0070.00716.32
8.2.170.0040.01122.96
8.2.160.0110.00620.85
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00420.52
8.2.120.0080.00026.35
8.2.110.0040.00419.20
8.2.100.0090.00317.78
8.2.90.0040.00419.13
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0040.00420.65
8.2.30.0000.00719.27
8.2.20.0080.00017.86
8.2.10.0080.00017.98
8.2.00.0040.00417.97
8.1.280.0070.00725.92
8.1.270.0080.00023.75
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0110.00017.48
8.1.230.0060.00617.77
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0090.00018.46
8.1.160.0040.00418.79
8.1.150.0040.00422.11
8.1.140.0040.00419.56
8.1.130.0000.00718.88
8.1.120.0000.00717.42
8.1.110.0050.00317.42
8.1.100.0000.00717.52
8.1.90.0040.00417.44
8.1.80.0040.00417.47
8.1.70.0030.00517.41
8.1.60.0040.00417.64
8.1.50.0060.00317.41
8.1.40.0060.00317.49
8.1.30.0000.00817.50
8.1.20.0040.00417.63
8.1.10.0000.00817.38
8.1.00.0040.00417.43
8.0.300.0060.00618.77
8.0.290.0050.00316.88
8.0.280.0070.00018.37
8.0.270.0030.00317.16
8.0.260.0060.00016.81
8.0.250.0030.00516.80
8.0.240.0000.00816.91
8.0.230.0040.00416.80
8.0.220.0030.00316.79
8.0.210.0000.00716.68
8.0.200.0000.00716.89
8.0.190.0060.00316.84
8.0.180.0060.00316.85
8.0.170.0000.00716.81
8.0.160.0040.00416.86
8.0.150.0000.00716.72
8.0.140.0050.00316.79
8.0.130.0050.00513.24
8.0.120.0050.00216.70
8.0.110.0050.00316.87
8.0.100.0030.00616.76
8.0.90.0040.00416.63
8.0.80.0070.00716.87
8.0.70.0030.00616.84
8.0.60.0000.00716.70
8.0.50.0040.00416.88
8.0.30.0090.00916.93
8.0.20.0110.00917.40
8.0.10.0000.00816.90
8.0.00.0130.00316.88
7.4.330.0050.00015.55
7.4.320.0030.00316.38
7.4.300.0070.00016.50
7.4.290.0030.00316.59
7.4.280.0020.00516.50
7.4.270.0030.00316.52
7.4.260.0070.00016.37
7.4.250.0030.00516.55
7.4.240.0000.00916.60
7.4.230.0030.00316.56
7.4.220.0120.00916.43
7.4.210.0100.00616.44
7.4.200.0030.00316.50
7.4.160.0060.01216.40
7.4.150.0140.00417.40
7.4.140.0080.01117.86
7.4.130.0100.01316.41
7.4.120.0070.01216.40
7.4.110.0120.00416.67
7.4.100.0100.00616.47
7.4.90.0120.00616.45
7.4.80.0100.00619.39
7.4.70.0100.00716.48
7.4.60.0100.01016.32
7.4.50.0000.01116.38
7.4.40.0100.00716.50
7.4.30.0090.00916.48
7.4.00.0100.00714.64
7.3.330.0030.00313.09
7.3.320.0030.00312.95
7.3.310.0000.00716.27
7.3.300.0080.00016.21
7.3.290.0090.00916.16
7.3.280.0100.00916.17
7.3.270.0030.01417.40
7.3.260.0130.00916.42
7.3.250.0090.00716.41
7.3.240.0060.01116.28
7.3.230.0070.01016.36
7.3.210.0120.00616.16
7.3.200.0090.00616.18
7.3.190.0040.01216.38
7.3.180.0120.00416.43
7.3.170.0030.01216.39
7.3.160.0060.01316.41
7.2.330.0130.00316.60
7.2.320.0090.00916.75
7.2.310.0030.01316.66
7.2.300.0100.01016.63
7.2.290.0150.00716.65
7.2.110.0090.00616.66
7.2.60.0080.00416.74
7.1.200.0040.00815.55
7.1.70.0040.00717.12
7.1.60.0500.01033.08
7.1.50.1400.01332.80
7.1.40.1430.00732.51
7.1.30.2370.01732.46
7.1.20.1370.00732.84
7.1.10.1070.01314.76
7.1.00.1230.01314.71
7.0.200.1600.00714.80
7.0.190.0630.01014.64
7.0.180.1200.01014.27
7.0.170.2330.00714.14
7.0.160.1730.00714.51
7.0.150.1100.01014.37
7.0.140.1770.01014.51
7.0.130.1330.00714.48
7.0.120.1270.00714.64
7.0.110.1330.00314.54
7.0.100.1330.01314.61
7.0.90.1270.01014.27
7.0.80.1630.01014.49
7.0.70.2070.00314.43
7.0.60.1630.00714.35
7.0.50.1730.01314.37
7.0.40.1670.01014.82
7.0.30.1500.01014.37
7.0.20.1730.01014.59
7.0.10.1430.00714.48
7.0.00.0030.01014.75

preferences:
61.57 ms | 404 KiB | 6 Q