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"; $pw1 = 'my cool password keep it secrete please'; $pw2 = 'some other password'; $abc = strcmp($xyz, $pw1); if ($abc == 0) { echo "yep $pw1 is the right password strcmp said so"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "yep $pw2 is the correct password too, strcmp said so"; } $ghi = strcmp($pw1, $pw2); if ($ghi != 0) { echo "weird '$pw1' isn't the same as '$pw2'"; } else {echo "i am strcmp, and i declare that '$pw1' is the same as '$pw2'!!"; } }

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.0040.01118.43
8.3.50.0210.00822.95
8.3.40.0000.01518.76
8.3.30.0070.00719.10
8.3.20.0070.00020.38
8.3.10.0040.00423.65
8.3.00.0080.00019.38
8.2.180.0120.00916.50
8.2.170.0120.00322.96
8.2.160.0030.01320.11
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00420.82
8.2.110.0000.00820.47
8.2.100.0040.00718.16
8.2.90.0050.00519.25
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00918.34
8.2.30.0040.00418.07
8.2.20.0080.00017.74
8.2.10.0080.00018.00
8.2.00.0050.00217.75
8.1.280.0120.00625.92
8.1.270.0040.00423.97
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00923.77
8.1.230.0080.00419.00
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0050.00517.47
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0000.00918.34
8.1.160.0060.00321.93
8.1.150.0040.00418.80
8.1.140.0050.00217.43
8.1.130.0030.00317.83
8.1.120.0040.00417.53
8.1.110.0000.00717.45
8.1.100.0050.00317.44
8.1.90.0030.00617.35
8.1.80.0000.00817.45
8.1.70.0000.00717.34
8.1.60.0030.00617.58
8.1.50.0000.00917.51
8.1.40.0050.00317.52
8.1.30.0000.00817.65
8.1.20.0040.00417.57
8.1.10.0040.00417.46
8.1.00.0000.00717.39
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0030.00318.50
8.0.270.0040.00417.30
8.0.260.0030.00317.32
8.0.250.0030.00317.03
8.0.240.0080.00017.00
8.0.230.0000.00717.00
8.0.220.0030.00316.82
8.0.210.0030.00316.93
8.0.200.0070.00016.92
8.0.190.0040.00416.89
8.0.180.0000.00716.96
8.0.170.0040.00416.96
8.0.160.0040.00416.85
8.0.150.0000.00716.88
8.0.140.0040.00416.72
8.0.130.0040.00313.42
8.0.120.0000.00816.82
8.0.110.0000.00716.98
8.0.100.0040.00416.82
8.0.90.0050.00316.82
8.0.80.0100.00717.00
8.0.70.0040.00416.91
8.0.60.0050.00216.99
8.0.50.0000.00716.96
8.0.30.0090.01417.23
8.0.20.0080.01117.40
8.0.10.0040.00417.13
8.0.00.0040.01416.92
7.4.330.0030.00315.09
7.4.320.0000.00616.44
7.4.300.0000.00616.40
7.4.290.0030.00316.57
7.4.280.0050.00316.51
7.4.270.0020.00516.50
7.4.260.0030.00316.41
7.4.250.0050.00316.41
7.4.240.0020.00616.55
7.4.230.0050.00216.26
7.4.220.0070.01016.63
7.4.210.0130.00016.48
7.4.200.0030.00316.49
7.4.160.0060.01116.39
7.4.150.0080.00817.40
7.4.140.0140.00317.86
7.4.130.0100.00816.51
7.4.120.0080.00916.60
7.4.110.0100.00616.63
7.4.100.0120.00416.36
7.4.90.0170.00416.70
7.4.80.0110.01119.39
7.4.70.0060.01216.48
7.4.60.0060.01216.49
7.4.50.0080.00516.48
7.4.40.0130.00216.07
7.4.30.0040.01216.17
7.4.20.0060.00916.23
7.4.10.0120.00316.04
7.4.00.0110.00815.97
7.3.330.0000.00613.19
7.3.320.0050.00013.37
7.3.310.0030.00316.53
7.3.300.0030.00316.29
7.3.290.0110.00316.42
7.3.280.0090.00516.37
7.3.270.0090.00917.40
7.3.260.0080.00916.34
7.3.250.0110.00616.61
7.3.240.0130.00316.58
7.3.230.0060.01016.57
7.3.210.0120.01316.73
7.3.200.0170.00019.39
7.3.190.0110.01116.55
7.3.180.0070.01216.26
7.3.170.0060.01016.26
7.3.160.0030.01216.28
7.3.150.0110.00416.26
7.3.140.0030.01316.22
7.3.130.0090.00816.45
7.3.120.0030.01316.29
7.3.110.0070.00816.11
7.3.100.0080.00816.49
7.3.90.0060.00916.30
7.3.80.0030.01816.12
7.3.70.0100.00616.12
7.3.60.0070.01016.24
7.3.50.0150.00416.30
7.3.40.0140.00516.18
7.3.30.0090.00616.15
7.3.20.0100.00616.30
7.3.10.0090.00816.36
7.3.00.0060.01016.32
7.2.330.0110.01316.75
7.2.320.0120.00616.51
7.2.310.0060.01116.76
7.2.300.0090.00916.51
7.2.290.0050.01116.44
7.2.280.0130.00316.31
7.2.270.0100.00716.50
7.2.260.0150.00316.67
7.2.250.0130.00416.44
7.2.240.0030.01416.24
7.2.230.0140.01116.53
7.2.220.0130.01216.19
7.2.210.0070.01016.35
7.2.200.0060.01216.34
7.2.190.0080.00816.34
7.2.180.0070.01016.28
7.2.170.0130.00716.42
7.2.160.0060.01116.63
7.2.150.0130.00416.47
7.2.140.0120.00616.44
7.2.130.0060.01116.57
7.2.120.0190.00416.76
7.2.110.0070.00816.52
7.2.100.0080.00916.69
7.2.90.0090.01116.68
7.2.80.0120.00616.60
7.2.70.0080.01016.62
7.2.60.0090.00916.67
7.2.50.0110.01216.70
7.2.40.0090.01016.56
7.2.30.0190.00816.61
7.2.20.0130.00816.70
7.2.10.0120.00716.53
7.2.00.0080.00617.40
7.1.330.0070.01015.46
7.1.320.0140.01015.37
7.1.310.0060.00915.30
7.1.300.0120.00615.32
7.1.290.0120.00315.36
7.1.280.0080.00815.35
7.1.270.0120.00615.38
7.1.260.0110.00615.46
7.1.250.0080.00815.64
7.1.240.0150.00015.16
7.1.230.0090.00615.29
7.1.220.0090.00615.41
7.1.210.0160.00015.18
7.1.200.0050.00915.46
7.1.190.0060.00915.36
7.1.180.0040.01115.27
7.1.170.0050.01015.31
7.1.160.0090.00615.27
7.1.150.0120.00315.31
7.1.140.0150.00015.42
7.1.130.0080.00815.29
7.1.120.0100.00715.30
7.1.110.0060.01515.27
7.1.100.0070.00716.87
7.1.90.0040.01115.06
7.1.80.0030.01215.28
7.1.70.0070.00716.29
7.1.60.0130.00917.38
7.1.50.0080.01116.11
7.1.40.0080.00815.24
7.1.30.0030.01215.39
7.1.20.0090.00915.34
7.1.10.0130.00615.37
7.1.00.0050.04618.87
7.0.330.0100.00414.90
7.0.320.0110.00415.11
7.0.310.0070.01115.00
7.0.300.0030.01214.89
7.0.290.0110.00315.00
7.0.280.0070.00714.90
7.0.270.0040.01114.82
7.0.260.0060.00915.01
7.0.250.0140.00014.95
7.0.240.0040.01114.90
7.0.230.0090.00614.91
7.0.220.0000.01514.84
7.0.210.0080.00814.89
7.0.200.0100.00415.71
7.0.190.0000.01614.78
7.0.180.0040.01414.86
7.0.170.0090.00914.95
7.0.160.0080.01115.02
7.0.150.0070.00714.97
7.0.140.0090.03718.49
7.0.130.0030.01215.06
7.0.120.0090.00614.89
7.0.110.0030.01214.98
7.0.100.0140.00014.93
7.0.90.0000.01515.04
7.0.80.0070.01014.88
7.0.70.0080.01215.02
7.0.60.0110.04417.53
7.0.50.0090.04316.48
7.0.40.0120.02417.39
7.0.30.0330.03617.45
7.0.20.0170.02117.44
7.0.10.0040.03217.54
7.0.00.0100.03617.55
5.6.400.0090.00915.65
5.6.390.0080.00815.64
5.6.380.0030.01315.82
5.6.370.0040.01215.71
5.6.360.0130.00415.78
5.6.350.0100.00715.60
5.6.340.0130.01315.81
5.6.330.0070.01015.73
5.6.320.0060.01215.67
5.6.310.0040.01315.79
5.6.300.0060.01215.86
5.6.290.0140.00315.79
5.6.280.0090.03818.46
5.6.270.0030.01415.70
5.6.260.0140.00315.56
5.6.250.0030.01315.64
5.6.240.0060.01215.76
5.6.230.0070.01715.68
5.6.220.0040.02115.52
5.6.210.0100.04518.04
5.6.200.0110.03716.92
5.6.190.0070.05017.92
5.6.180.2200.02818.04
5.6.170.0170.03018.09
5.6.160.0100.03818.04
5.6.150.0110.03616.87
5.6.140.0080.04516.95
5.6.130.0060.03016.84
5.6.120.0070.02718.29
5.6.110.0020.03018.41
5.6.100.0080.04918.33
5.6.90.0050.05018.40
5.6.80.0040.02818.04
5.6.70.0060.01215.76
5.6.60.0080.01615.84
5.6.50.0040.01415.76
5.6.40.0000.01815.69
5.6.30.0090.00915.51
5.6.20.0120.00615.75
5.6.10.0000.01715.83
5.6.00.0090.00915.60
5.5.380.0090.00915.74
5.5.370.0090.01215.46
5.5.360.0100.01615.75
5.5.350.0160.04318.02
5.5.340.0060.03316.70
5.5.330.0080.04817.92
5.5.320.0260.02817.90
5.5.310.0130.02517.93
5.5.300.0050.02916.71
5.5.290.0070.03516.83
5.5.280.0130.04118.22
5.5.270.0080.03718.17
5.5.260.0090.04618.11
5.5.250.0090.04418.14
5.5.240.0120.03817.84
5.5.230.0130.01015.53
5.5.220.0190.00315.58
5.5.210.0080.01615.25
5.5.200.0090.00915.45
5.5.190.0070.01115.35
5.5.180.0150.00315.79
5.5.170.0080.01015.79
5.5.160.0090.00915.86
5.5.150.0120.00615.80
5.5.140.0040.01315.82
5.5.130.0130.00315.64
5.5.120.0060.01215.61
5.5.110.0120.00615.86
5.5.100.0040.01515.82
5.5.90.0150.00415.84
5.5.80.0140.00615.84
5.5.70.0110.00815.58
5.5.60.0170.00615.80
5.5.50.0110.00815.88
5.5.40.0100.01015.31
5.5.30.0050.01915.40
5.5.20.0100.01015.62
5.5.10.0130.00715.57
5.5.00.0100.01015.80
5.4.450.0100.02715.95
5.4.440.0080.02315.95
5.4.430.0140.02215.79
5.4.420.0150.02616.06
5.4.410.0150.01815.91
5.4.400.0120.03415.92
5.4.390.0080.02815.67
5.4.380.0260.03315.46
5.4.370.0200.03515.48
5.4.360.0210.03115.44
5.4.350.0330.03715.43
5.4.340.0240.03315.59
5.4.330.0030.01012.38
5.4.320.0070.03012.46
5.4.310.0050.02912.45
5.4.300.0040.02412.37
5.4.290.0050.02312.42
5.4.280.0090.01812.31
5.4.270.0080.02012.40
5.4.260.0100.01912.37
5.4.250.0050.02312.31
5.4.240.0040.02312.31
5.4.230.0060.02212.35
5.4.220.0080.02012.45
5.4.210.0060.02112.34
5.4.200.0050.02412.38
5.4.190.0040.02412.35
5.4.180.0100.02212.37
5.4.170.0070.02312.37
5.4.160.0060.02712.40
5.4.150.0070.02112.45
5.4.140.0070.02112.31
5.4.130.0080.01912.44
5.4.120.0050.02312.21
5.4.110.0100.01812.27
5.4.100.0060.02212.14
5.4.90.0100.02112.26
5.4.80.0130.01912.16
5.4.70.0080.02012.21
5.4.60.0070.02112.30
5.4.50.0070.02412.11
5.4.40.0070.02012.16
5.4.30.0080.02012.23
5.4.20.0040.02312.27
5.4.10.0070.02112.30
5.4.00.0030.02611.86
5.3.290.0070.02313.03
5.3.280.0040.02512.87
5.3.270.0070.02313.01
5.3.260.0050.02512.88
5.3.250.0040.02412.92
5.3.240.0060.02312.85
5.3.230.0080.02212.86
5.3.220.0060.02312.79
5.3.210.0070.02412.76
5.3.200.0040.02512.87
5.3.190.0020.02612.80
5.3.180.0040.02512.95
5.3.170.0100.01812.95
5.3.160.0060.02312.96
5.3.150.0090.02212.88
5.3.140.0060.02312.91
5.3.130.0080.02112.91
5.3.120.0080.02212.87
5.3.110.0080.02312.86
5.3.100.0060.02212.62
5.3.90.0020.02712.54
5.3.80.0050.02212.48
5.3.70.0080.02112.46
5.3.60.0030.02512.47
5.3.50.0090.02012.53
5.3.40.0040.02412.41
5.3.30.0050.02312.47
5.3.20.0070.02012.33
5.3.10.0070.02012.22
5.3.00.0040.02412.17
5.2.170.0050.01910.59
5.2.160.0080.01610.61
5.2.150.0050.02010.61
5.2.140.0090.01610.63
5.2.130.0080.01610.56
5.2.120.0060.01810.60
5.2.110.0040.01910.56
5.2.100.0020.02210.63
5.2.90.0040.01910.54
5.2.80.0040.01910.55
5.2.70.0090.01510.56
5.2.60.0070.01610.47
5.2.50.0050.01910.50
5.2.40.0080.01510.47
5.2.30.0060.01610.45
5.2.20.0040.01910.51
5.2.10.0060.01810.32
5.2.00.0070.01810.24
5.1.60.0060.0149.50
5.1.50.0050.0169.68
5.1.40.0060.0159.70
5.1.30.0030.0189.83
5.1.20.0050.0169.76
5.1.10.0070.0149.67
5.1.00.0050.0169.69
5.0.50.0060.0118.39
5.0.40.0040.0138.32
5.0.30.0050.0188.23
5.0.20.0040.0148.21
5.0.10.0050.0118.20
5.0.00.0030.0188.20
4.4.90.0020.0097.46
4.4.80.0020.0107.45
4.4.70.0020.0107.45
4.4.60.0040.0097.45
4.4.50.0040.0087.46
4.4.40.0040.0137.42
4.4.30.0050.0077.45
4.4.20.0010.0127.49
4.4.10.0000.0127.50
4.4.00.0010.0167.45
4.3.110.0030.0097.41
4.3.100.0040.0077.40
4.3.90.0030.0087.39
4.3.80.0040.0137.36
4.3.70.0040.0077.38
4.3.60.0020.0107.38
4.3.50.0050.0077.38
4.3.40.0010.0157.34
4.3.30.0020.0096.72
4.3.20.0030.0106.71
4.3.10.0020.0106.69
4.3.00.0030.00814.28

preferences:
42.21 ms | 401 KiB | 5 Q