3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz[]="a"; var_dump($xyz); if($xyz != '') { echo "xyz is not empty! good to go!\n"; $abc = strcmp($xyz, 'my cool password keep it secrete please'); if ($abc == 0) { echo "yep that is the right password strcmp said so"; } $def = strcmp($xyz, 'some other password'); if ($def == 0) { echo "yep that password is correct too, strcmp said so"; } }

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.00718.40
8.3.50.0110.00523.03
8.3.40.0150.00319.01
8.3.30.0150.00019.22
8.3.20.0000.00720.16
8.3.10.0070.00023.48
8.3.00.0040.00419.27
8.2.180.0070.01425.92
8.2.170.0090.01218.70
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00819.36
8.2.110.0030.00722.07
8.2.100.0040.00818.16
8.2.90.0050.00519.27
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0000.00918.05
8.2.50.0040.00418.07
8.2.40.0060.00318.21
8.2.30.0060.00318.11
8.2.20.0050.00317.69
8.2.10.0030.00618.04
8.2.00.0000.00717.72
8.1.280.0180.00425.92
8.1.270.0090.00023.83
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00823.76
8.1.230.0110.00019.10
8.1.220.0040.00417.76
8.1.210.0030.00518.77
8.1.200.0000.00917.38
8.1.190.0040.00417.38
8.1.180.0030.00518.10
8.1.170.0000.00818.55
8.1.160.0030.00521.96
8.1.150.0070.00018.77
8.1.140.0050.00217.54
8.1.130.0030.00317.71
8.1.120.0000.00817.46
8.1.110.0000.00717.47
8.1.100.0050.00217.46
8.1.90.0070.00017.39
8.1.80.0070.00017.37
8.1.70.0070.00017.42
8.1.60.0030.00517.63
8.1.50.0030.00517.41
8.1.40.0000.00717.39
8.1.30.0030.00517.63
8.1.20.0050.00217.60
8.1.10.0000.00817.47
8.1.00.0070.00017.53
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.32
8.0.270.0030.00317.19
8.0.260.0060.00017.26
8.0.250.0060.00016.96
8.0.240.0060.00317.01
8.0.230.0070.00016.89
8.0.220.0050.00216.96
8.0.210.0070.00016.98
8.0.200.0000.00716.99
8.0.190.0060.00316.93
8.0.180.0070.00016.97
8.0.170.0000.00817.00
8.0.160.0040.00317.08
8.0.150.0030.00516.96
8.0.140.0000.00716.76
8.0.130.0000.00613.46
8.0.120.0080.00016.81
8.0.110.0030.00416.93
8.0.100.0050.00216.84
8.0.90.0030.00616.95
8.0.80.0030.01416.91
8.0.70.0030.00316.82
8.0.60.0050.00216.95
8.0.50.0040.00416.76
8.0.30.0100.01517.03
8.0.20.0160.00717.40
8.0.10.0070.00016.96
8.0.00.0090.01116.76
7.4.330.0060.00015.02
7.4.320.0030.00316.41
7.4.300.0030.00316.61
7.4.290.0000.00716.53
7.4.280.0070.00016.42
7.4.270.0000.00716.59
7.4.260.0070.00016.58
7.4.250.0040.00416.57
7.4.240.0030.00516.58
7.4.230.0030.00416.41
7.4.220.0090.01216.65
7.4.210.0030.01216.55
7.4.200.0030.00316.61
7.4.160.0130.01016.56
7.4.150.0120.00617.40
7.4.140.0070.01117.86
7.4.130.0110.00616.63
7.4.120.0110.00616.67
7.4.110.0100.00616.52
7.4.100.0070.01016.61
7.4.90.0180.00016.61
7.4.80.0120.00919.39
7.4.70.0090.00616.59
7.4.60.0100.00916.36
7.4.50.0050.00816.41
7.4.40.0120.00815.81
7.4.30.0140.01215.90
7.4.20.0120.00816.07
7.4.10.0130.00716.14
7.4.00.0060.00915.92
7.3.330.0070.00013.13
7.3.320.0000.00613.17
7.3.310.0070.00016.27
7.3.300.0000.00716.29
7.3.290.0040.01116.36
7.3.280.0070.01116.36
7.3.270.0080.00817.40
7.3.260.0060.01216.59
7.3.250.0090.00816.33
7.3.240.0080.00816.32
7.3.230.0060.01016.46
7.3.210.0130.00516.27
7.3.200.0090.01219.39
7.3.190.0080.00816.54
7.3.180.0130.00616.18
7.3.170.0190.00016.18
7.3.160.0080.01216.09
7.3.150.0140.00916.33
7.3.140.0090.01016.36
7.3.130.0140.00516.04
7.3.120.0070.01116.26
7.3.110.0140.00516.01
7.3.100.0130.00716.09
7.3.90.0130.00616.11
7.3.80.0130.01016.14
7.3.70.0070.01116.34
7.3.60.0100.01316.25
7.3.50.0090.01416.34
7.3.40.0130.00316.11
7.3.30.0060.01016.14
7.3.20.0110.00816.03
7.3.10.0100.00716.07
7.3.00.0070.01016.08
7.2.330.0110.00816.80
7.2.320.0070.01016.67
7.2.310.0100.01016.09
7.2.300.0110.00916.24
7.2.290.0120.00816.28
7.2.280.0150.00516.04
7.2.270.0100.01016.30
7.2.260.0170.00616.47
7.2.250.0000.01816.21
7.2.240.0100.01016.18
7.2.230.0110.00816.52
7.2.220.0080.01216.39
7.2.210.0080.01516.18
7.2.200.0110.00716.46
7.2.190.0060.01116.41
7.2.180.0110.01216.38
7.2.170.0070.01016.28
7.2.160.0070.01316.56
7.2.150.0040.01316.25
7.2.140.0170.00716.24
7.2.130.0060.01216.11
7.2.120.0150.00316.80
7.2.110.0120.00916.25
7.2.100.0090.01016.51
7.2.90.0040.01816.36
7.2.80.0090.01216.31
7.2.70.0070.01016.30
7.2.60.0130.00416.11
7.2.50.0120.00616.40
7.2.40.0070.01016.27
7.2.30.0110.00616.52
7.2.20.0030.01416.18
7.2.10.0130.00516.47
7.2.00.0060.01018.04
7.1.330.0110.00615.29
7.1.320.0170.00615.13
7.1.310.0110.00714.99
7.1.300.0220.00615.24
7.1.290.0120.00315.14
7.1.280.0070.01015.39
7.1.270.0130.00315.21
7.1.260.0090.00615.31
7.1.250.0420.01215.27
7.1.240.0080.00814.98
7.1.230.0120.00415.07
7.1.220.0130.00515.24
7.1.210.0090.01215.06
7.1.200.0060.01415.12
7.1.190.0100.00715.11
7.1.180.0100.00715.20
7.1.170.0050.01115.12
7.1.160.0100.01015.04
7.1.150.0120.00415.04
7.1.140.0120.00315.21
7.1.130.0050.01215.14
7.1.120.0060.00915.16
7.1.110.0030.01215.23
7.1.100.0040.01116.43
7.1.90.0100.01415.05
7.1.80.0040.01215.12
7.1.70.0070.00616.17
7.1.60.0020.01817.27
7.1.50.0110.00716.04
7.1.40.0080.01015.27
7.1.30.0040.01115.27
7.1.20.0080.00815.25
7.1.10.0090.00615.03
7.1.00.0070.03918.79
7.0.330.0060.00914.89
7.0.320.0100.00514.68
7.0.310.0070.01015.01
7.0.300.0050.01014.80
7.0.290.0110.00514.74
7.0.280.0030.01215.00
7.0.270.0000.01615.09
7.0.260.0100.00615.05
7.0.250.0060.00915.04
7.0.240.0060.00914.83
7.0.230.0000.01614.71
7.0.220.0070.00715.28
7.0.210.0270.01215.04
7.0.200.0060.00815.54
7.0.190.0090.00614.88
7.0.180.0090.00614.94
7.0.170.0060.00914.87
7.0.160.0090.00614.93
7.0.150.0070.01014.91
7.0.140.0120.03318.64
7.0.130.0110.00415.08
7.0.120.0080.00814.97
7.0.110.0090.00614.94
7.0.100.0110.00714.82
7.0.90.0060.01115.02
7.0.80.0130.00614.89
7.0.70.0090.00714.97
7.0.60.0170.04217.49
7.0.50.0100.03616.38
7.0.40.0100.04617.51
7.0.30.0180.02117.45
7.0.20.0150.02817.59
7.0.10.0070.05017.60
7.0.00.0050.03217.49
5.6.400.0090.00915.90
5.6.390.0080.01115.51
5.6.380.0030.01915.73
5.6.370.0120.00615.57
5.6.360.0030.01515.40
5.6.350.0060.01215.78
5.6.340.0110.00815.87
5.6.330.0070.01015.74
5.6.320.0180.00015.77
5.6.310.0120.00615.86
5.6.300.0130.00915.79
5.6.290.0000.01715.60
5.6.280.0030.04418.39
5.6.270.0140.00615.74
5.6.260.0040.01415.59
5.6.250.0090.00915.36
5.6.240.0060.01515.73
5.6.230.0070.01115.43
5.6.220.0090.00915.61
5.6.210.0100.04818.22
5.6.200.0080.04316.84
5.6.190.0120.04317.93
5.6.180.1750.02418.02
5.6.170.0210.04117.93
5.6.160.0130.04318.03
5.6.150.0140.03816.87
5.6.140.0110.04016.98
5.6.130.0090.04916.77
5.6.120.0120.04118.19
5.6.110.0070.04618.18
5.6.100.0140.03018.28
5.6.90.0070.03518.34
5.6.80.0080.03318.04
5.6.70.0090.00915.96
5.6.60.0080.00915.78
5.6.50.0090.00915.42
5.6.40.0110.00715.39
5.6.30.0100.00715.63
5.6.20.0100.00715.82
5.6.10.0090.00915.58
5.6.00.0070.01015.55
5.5.380.0130.01015.48
5.5.370.0110.01115.81
5.5.360.0110.00715.59
5.5.350.0190.04018.08
5.5.340.0080.02516.77
5.5.330.0080.02317.92
5.5.320.0200.04417.97
5.5.310.0090.02918.05
5.5.300.0110.04516.91
5.5.290.0100.04816.69
5.5.280.0090.04518.17
5.5.270.0050.03418.24
5.5.260.0070.05018.10
5.5.250.0070.04418.09
5.5.240.0170.03817.93
5.5.230.0100.00715.41
5.5.220.0090.00915.63
5.5.210.0130.00315.79
5.5.200.0090.00815.39
5.5.190.0110.01215.70
5.5.180.0070.01015.50
5.5.170.0100.00715.50
5.5.160.0130.00315.67
5.5.150.0060.01015.65
5.5.140.0030.01315.59
5.5.130.0110.00615.65
5.5.120.0110.00715.76
5.5.110.0030.01315.66
5.5.100.0090.00915.74
5.5.90.0090.00915.36
5.5.80.0120.00615.80
5.5.70.0140.00315.65
5.5.60.0070.01115.53
5.5.50.0100.00715.55
5.5.40.0040.01315.49
5.5.30.0090.01315.93
5.5.20.0080.00815.87
5.5.10.0090.00915.27
5.5.00.0070.01115.49
5.4.450.0170.03115.97
5.4.440.0100.02415.81
5.4.430.0150.01915.95
5.4.420.0130.04015.74
5.4.410.0120.02115.70
5.4.400.0130.02015.69
5.4.390.0170.02015.81
5.4.380.0210.03215.48
5.4.370.0180.02915.54
5.4.360.0310.03615.52
5.4.350.0210.03115.45
5.4.340.0300.02815.71
5.4.330.0030.01012.34
5.4.320.0090.01712.44
5.4.310.0070.02112.49
5.4.300.0060.02212.41
5.4.290.0070.02112.49
5.4.280.0070.02012.34
5.4.270.0060.02212.22
5.4.260.0040.02412.27
5.4.250.0060.02212.31
5.4.240.0040.02312.29
5.4.230.0050.02312.41
5.4.220.0060.02112.38
5.4.210.0070.01912.40
5.4.200.0050.02312.34
5.4.190.0090.01812.38
5.4.180.0040.02412.38
5.4.170.0050.02212.31
5.4.160.0060.02112.36
5.4.150.0060.02212.35
5.4.140.0060.02212.23
5.4.130.0050.02312.22
5.4.120.0040.02212.19
5.4.110.0070.02012.08
5.4.100.0080.01912.21
5.4.90.0060.02112.17
5.4.80.0020.02512.23
5.4.70.0050.02212.19
5.4.60.0070.02312.19
5.4.50.0070.02012.28
5.4.40.0070.01912.16
5.4.30.0070.02012.28
5.4.20.0040.02312.20
5.4.10.0070.02012.17
5.4.00.0060.02111.96
5.3.290.0060.02312.94
5.3.280.0090.02012.87
5.3.270.0100.02112.89
5.3.260.0080.02012.86
5.3.250.0090.02212.88
5.3.240.0090.02012.85
5.3.230.0040.02512.87
5.3.220.0050.02412.79
5.3.210.0050.02412.93
5.3.200.0050.02212.85
5.3.190.0050.02412.84
5.3.180.0080.02012.94
5.3.170.0040.02612.92
5.3.160.0050.02412.93
5.3.150.0080.02012.95
5.3.140.0060.02712.99
5.3.130.0110.01912.87
5.3.120.0070.02412.84
5.3.110.0070.02312.92
5.3.100.0080.02512.60
5.3.90.0100.02412.58
5.3.80.0080.02512.43
5.3.70.0070.02512.45
5.3.60.0090.02412.45
5.3.50.0080.02412.44
5.3.40.0060.02512.50
5.3.30.0040.02412.42
5.3.20.0040.02412.25
5.3.10.0050.02412.22
5.3.00.0040.02612.20
5.2.170.0050.02310.66
5.2.160.0070.01810.63
5.2.150.0070.01910.65
5.2.140.0050.01810.57
5.2.130.0040.02110.55
5.2.120.0080.01410.55
5.2.110.0070.01810.55
5.2.100.0050.01710.55
5.2.90.0040.01910.67
5.2.80.0060.01810.49
5.2.70.0050.01910.56
5.2.60.0080.01510.50
5.2.50.0080.01910.48
5.2.40.0060.01810.49
5.2.30.0060.02010.44
5.2.20.0060.01810.49
5.2.10.0030.02010.27
5.2.00.0020.02010.33
5.1.60.0040.0159.57
5.1.50.0050.0149.48
5.1.40.0040.0159.62
5.1.30.0050.0169.77
5.1.20.0050.0169.75
5.1.10.0030.0189.65
5.1.00.0060.0199.59
5.0.50.0080.0128.38
5.0.40.0070.0118.32
5.0.30.0010.0218.21
5.0.20.0020.0168.20
5.0.10.0020.0158.19
5.0.00.0040.0198.19
4.4.90.0050.0077.46
4.4.80.0040.0077.45
4.4.70.0010.0127.45
4.4.60.0030.0097.45
4.4.50.0020.0117.45
4.4.40.0040.0147.43
4.4.30.0020.0107.45
4.4.20.0020.0107.49
4.4.10.0020.0107.50
4.4.00.0010.0167.45
4.3.110.0010.0117.41
4.3.100.0020.0107.40
4.3.90.0040.0077.39
4.3.80.0020.0147.36
4.3.70.0020.0107.38
4.3.60.0010.0117.38
4.3.50.0040.0077.38
4.3.40.0010.0167.34
4.3.30.0020.0136.71
4.3.20.0040.0106.70
4.3.10.0020.0136.68
4.3.00.0000.01314.28

preferences:
47.65 ms | 401 KiB | 5 Q