3v4l.org

run code in 300+ PHP versions simultaneously
<?php function md5Reverse($hash) : Generator { $stringGenerator = stringGenerator(); foreach($stringGenerator as $string) { if(md5($string) === $hash){ yield $string; } } } function stringGenerator(): Generator { $state = ''; yield $state; } echo md5(''); var_dump(md5Reverse('d41d8cd98f00b204e9800998ecf8427e'));

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.0060.00918.18
8.3.50.0040.01116.24
8.3.40.0110.00418.70
8.3.30.0110.00418.69
8.3.20.0040.00420.34
8.3.10.0070.00021.77
8.3.00.0040.00423.64
8.2.180.0100.01018.29
8.2.170.0070.00722.96
8.2.160.0100.00319.38
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00421.98
8.2.120.0060.00326.35
8.2.110.0060.00322.15
8.2.100.0080.00417.71
8.2.90.0040.00417.84
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0040.00418.04
8.2.50.0050.00318.10
8.2.40.0050.00320.46
8.2.30.0000.00819.25
8.2.20.0030.00518.12
8.2.10.0050.00217.91
8.2.00.0040.00418.17
8.1.280.0070.01425.92
8.1.270.0060.00323.92
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0040.00422.20
8.1.230.0050.01020.95
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00520.35
8.1.160.0000.00818.72
8.1.150.0070.00320.08
8.1.140.0040.00419.52
8.1.130.0040.00718.83
8.1.120.0070.00017.21
8.1.110.0060.00317.27
8.1.100.0040.00417.23
8.1.90.0000.00717.38
8.1.80.0040.00417.34
8.1.70.0050.00217.32
8.1.60.0000.00817.41
8.1.50.0020.00517.41
8.1.40.0080.00017.44
8.1.30.0070.00017.60
8.1.20.0000.00817.53
8.1.10.0000.00817.47
8.1.00.0000.00817.29
8.0.300.0070.00020.04
8.0.290.0040.00416.63
8.0.280.0050.00318.39
8.0.270.0030.00317.20
8.0.260.0080.00017.25
8.0.250.0070.00016.81
8.0.240.0100.00016.80
8.0.230.0060.00316.78
8.0.220.0030.00316.79
8.0.210.0000.00716.76
8.0.200.0000.00716.72
8.0.190.0080.00016.85
8.0.180.0040.00416.75
8.0.170.0070.00016.80
8.0.160.0000.00716.73
8.0.150.0050.00216.70
8.0.140.0040.00416.73
8.0.130.0040.00413.13
8.0.120.0030.00416.73
8.0.110.0030.00316.67
8.0.100.0040.00416.66
8.0.90.0000.00716.73
8.0.80.0070.01416.73
8.0.70.0040.00416.59
8.0.60.0070.00016.66
8.0.50.0000.00716.71
8.0.30.0100.01017.06
8.0.20.0080.01017.40
8.0.10.0030.00516.87
8.0.00.0030.01416.83
7.4.330.0000.00515.55
7.4.320.0060.00016.49
7.4.300.0060.00016.51
7.4.290.0040.00416.53
7.4.280.0050.00216.44
7.4.270.0070.00016.45
7.4.260.0040.00416.43
7.4.250.0000.00716.41
7.4.240.0030.00316.37
7.4.230.0030.00316.62
7.4.220.0120.00316.54
7.4.210.0100.01016.52
7.4.200.0030.00316.34
7.4.160.0100.00616.39
7.4.150.0100.00717.40
7.4.140.0110.01017.86
7.4.130.0100.00916.45
7.4.120.0070.01116.31
7.4.110.0140.00316.56
7.4.100.0090.01316.59
7.4.90.0110.00716.50
7.4.80.0060.02519.39
7.4.70.0170.00016.44
7.4.60.0100.00616.41
7.4.50.0080.00816.58
7.4.40.0060.01016.54
7.4.30.0070.01016.27
7.4.10.0100.00614.96
7.4.00.0130.00314.84
7.3.330.0000.00513.23
7.3.320.0030.00313.25
7.3.310.0000.00716.33
7.3.300.0060.00016.12
7.3.290.0060.00816.21
7.3.280.0110.00916.21
7.3.270.0130.00317.40
7.3.260.0110.01016.27
7.3.250.0130.00516.31
7.3.240.0030.01316.26
7.3.230.0000.01616.48
7.3.210.0100.00616.29
7.3.200.0070.01016.48
7.3.190.0120.00916.28
7.3.180.0120.00416.38
7.3.170.0090.00916.34
7.3.160.0040.01216.43
7.3.130.0060.01214.81
7.3.120.0000.01314.47
7.3.110.0110.00714.77
7.3.100.0000.01314.52
7.3.90.0110.00414.83
7.3.80.0070.00414.76
7.3.70.0100.00314.63
7.3.60.0030.01414.57
7.3.50.0030.01214.62
7.3.40.0060.00314.57
7.3.30.0100.00314.55
7.3.20.0110.00316.55
7.3.10.0150.01116.51
7.3.00.0120.00716.38
7.2.330.0120.00616.76
7.2.320.0120.00616.65
7.2.310.0030.01216.39
7.2.300.0130.01016.41
7.2.290.0080.00816.42
7.2.260.0090.00914.63
7.2.250.0090.00914.87
7.2.240.0000.01514.96
7.2.230.0090.00914.55
7.2.220.0130.00315.12
7.2.210.0090.00614.92
7.2.200.0060.00914.73
7.2.190.0040.01115.08
7.2.180.0040.01115.09
7.2.170.0130.00314.93
7.2.160.0040.01114.75
7.2.150.0040.01116.91
7.2.140.0140.00316.82
7.2.130.0170.01116.53
7.2.120.0120.00516.62
7.2.110.0220.01016.68
7.2.100.0120.01416.73
7.2.90.0070.00716.73
7.2.80.0080.00716.77
7.2.70.0050.01116.73
7.2.60.0120.00716.73
7.2.50.0070.00616.86
7.2.40.0040.01216.59
7.2.30.0090.00816.64
7.2.20.0110.00816.60
7.2.10.0000.01716.60
7.2.00.0080.00817.57
7.1.330.0030.01215.59
7.1.320.0140.00415.82
7.1.310.0070.00415.54
7.1.300.0090.00615.50
7.1.290.0000.01115.67
7.1.280.0140.00015.65
7.1.270.0000.00915.69
7.1.260.0100.00315.57
7.1.250.0120.00715.53
7.1.240.0000.01415.55
7.1.230.0110.00415.65
7.1.220.0070.00715.68
7.1.210.0070.01015.63
7.1.200.0060.00515.67
7.1.190.0060.00915.34
7.1.180.0070.00415.82
7.1.170.0040.00715.86
7.1.160.0070.01015.78
7.1.150.0070.00715.67
7.1.140.0090.00615.45
7.1.130.0080.00415.78
7.1.120.0030.01015.65
7.1.110.0090.00315.74
7.1.100.0080.00415.61
7.1.90.0090.00015.71
7.1.80.0060.00915.49
7.1.70.0030.00716.38
7.1.60.0020.00816.38
7.1.50.0070.01016.24
7.1.40.0030.00615.86
7.1.30.0960.03625.99
7.1.20.1070.04325.92
7.1.10.1780.05018.02
7.1.00.1920.03918.03
7.0.330.0070.00415.37
7.0.320.0070.01015.26
7.0.310.0060.00915.33
7.0.300.0000.00915.35
7.0.290.0030.01315.18
7.0.280.0080.00315.50
7.0.270.0090.00615.38
7.0.260.0030.00715.25
7.0.250.0100.00315.30
7.0.240.0030.01015.50
7.0.230.0000.01715.47
7.0.220.0040.01115.12
7.0.210.0070.00315.39
7.0.200.0060.00816.09
7.0.190.0100.00015.19
7.0.180.0050.00515.53
7.0.170.1130.04217.76
7.0.160.1400.04217.77
7.0.150.1220.03717.65
7.0.140.1840.04017.66
7.0.130.1140.03417.85
7.0.120.1070.03417.87
7.0.110.0900.04017.72
7.0.100.1000.03317.62
7.0.90.0940.02817.72
7.0.80.1150.04317.63
7.0.70.1600.03717.67
7.0.60.1390.03817.64
7.0.50.1620.03417.81
7.0.40.2380.03816.84
7.0.30.1350.03116.68
7.0.20.1850.05016.72
7.0.10.1120.03716.69
7.0.00.1840.03216.76
5.6.400.0050.00514.30
5.6.390.0030.00914.09
5.6.380.0030.01014.24
5.6.370.0060.00914.12
5.6.360.0070.00713.93
5.6.350.0030.01314.32
5.6.340.0040.01114.09
5.6.330.0000.01413.75
5.6.320.0070.00414.05
5.6.310.0030.00614.36
5.6.300.0030.00714.06
5.6.290.0000.01214.09
5.6.280.0110.00314.15
5.6.270.0080.00814.06
5.6.260.0030.01414.06
5.6.250.0090.00314.24
5.6.240.0060.00613.91
5.6.230.0000.00913.93
5.6.220.0030.01013.89
5.6.210.0060.00914.18
5.6.200.0030.00914.42
5.6.190.0080.00414.01
5.6.180.0000.01113.96
5.6.170.0060.00613.86
5.6.160.0030.01214.01
5.6.150.0000.01013.92
5.6.140.0070.00714.35
5.6.130.0040.00814.04
5.6.120.0030.01013.96
5.6.110.0000.00814.29
5.6.100.0100.00014.17
5.6.90.0080.00414.34
5.6.80.0070.01114.03
5.6.70.0070.00713.79
5.6.60.0070.01114.15
5.6.50.0090.00614.01
5.6.40.0000.01613.81
5.6.30.0070.00713.90
5.6.20.0030.00613.86
5.6.10.0070.00714.13
5.6.00.0040.01114.25

preferences:
63.96 ms | 401 KiB | 5 Q